dfaure accepted this revision. dfaure added a comment. This revision is now accepted and ready to land.
Ah, no, you're right. I remembered that there was a problem with function calls (rvalues) but that problem is not what I thought, it's the fact that one can't write qAsConst(myFunc()) (because the return value gets destroyed before it's used). But if the rvalue is const already, no problem. REPOSITORY R243 KArchive BRANCH compile_without_foreach (branched from master) REVISION DETAIL https://phabricator.kde.org/D19251 To: mlaurent, dfaure Cc: kde-frameworks-devel, michaelh, ngraham, bruns