D19251: Make it compiles without foreach

2019-02-24 Thread Laurent Montel
This revision was automatically updated to reflect the committed changes. Closed by commit R243:ff2240350387: Make it compiles without foreach (authored by mlaurent). REPOSITORY R243 KArchive CHANGES SINCE LAST UPDATE https://phabricator.kde.org/D19251?vs=52377&id=52426 REVISION DETAIL ht

D19251: Make it compiles without foreach

2019-02-24 Thread David Faure
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())

D19251: Make it compiles without foreach

2019-02-23 Thread Laurent Montel
mlaurent added inline comments. INLINE COMMENTS > dfaure wrote in krcc.cpp:147 > move to temp var to avoid detaching? dir is const. Will it detach ? REPOSITORY R243 KArchive REVISION DETAIL https://phabricator.kde.org/D19251 To: mlaurent, dfaure Cc: kde-frameworks-devel, michaelh, ngraham

D19251: Make it compiles without foreach

2019-02-23 Thread David Faure
dfaure requested changes to this revision. dfaure added inline comments. This revision now requires changes to proceed. INLINE COMMENTS > krcc.cpp:147 > { > -Q_FOREACH (const QString &fileName, dir.entryList()) { > +for (const QString &fileName : dir.entryList()) { > const QStri

D19251: Make it compiles without foreach

2019-02-23 Thread Laurent Montel
mlaurent created this revision. mlaurent added a reviewer: dfaure. Herald added a project: Frameworks. Herald added a subscriber: kde-frameworks-devel. mlaurent requested review of this revision. REPOSITORY R243 KArchive BRANCH compile_without_foreach (branched from master) REVISION DETAIL