Make it compile without foreach
ClosedPublic

Authored by mlaurent on May 31 2019, 7:10 PM.

Details

Summary

Port to for(...:...)

Diff Detail

Repository
R36 Ark
Lint
Automatic diff as part of commit; lint not applicable.
Unit
Automatic diff as part of commit; unit tests not applicable.
mlaurent created this revision.May 31 2019, 7:10 PM
Restricted Application added a project: Ark. · View Herald TranscriptMay 31 2019, 7:10 PM
Restricted Application added subscribers: Ark, kde-utils-devel. · View Herald Transcript
mlaurent requested review of this revision.May 31 2019, 7:10 PM
elvisangelaccio requested changes to this revision.Jun 1 2019, 9:33 AM
elvisangelaccio added inline comments.
CMakeLists.txt
89

Is 5.56 the first KF5 release that builds without foreach?

If yes, can you add a comment explaining the reason for this check?

autotests/kerfuffle/deletetest.cpp
59–60

Please call this variable formats

autotests/kerfuffle/extracttest.cpp
485–486

Please call this variable formats

autotests/testhelper/abstractaddtest.cpp
51–52

Please call this variable formats

kerfuffle/archiveentry.cpp
178–179

Please call this variable archiveEntries

kerfuffle/cliproperties.cpp
78–79

Please call this variable commentSwitches

kerfuffle/pluginmanager.cpp
127–130

Please call this variable plugins

This revision now requires changes to proceed.Jun 1 2019, 9:33 AM
mlaurent added inline comments.Jun 1 2019, 12:14 PM
CMakeLists.txt
89

Before it we can't build it without foreach as kconfig had some header with some Q_FOREACH

mlaurent updated this revision to Diff 58979.Jun 1 2019, 12:24 PM

Fix comments reported on phabricator

This revision is now accepted and ready to land.Jun 1 2019, 1:29 PM
This revision was automatically updated to reflect the committed changes.