[kirigami] make it compile without foreach
ClosedPublic

Authored by mlaurent on Mar 18 2019, 12:49 PM.

Details

Summary

compile without foreach

Test Plan

autotest ok

Diff Detail

Repository
R169 Kirigami
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.Mar 18 2019, 12:49 PM
Restricted Application added a project: Kirigami. · View Herald TranscriptMar 18 2019, 12:49 PM
Restricted Application added a subscriber: plasma-devel. · View Herald Transcript
mlaurent requested review of this revision.Mar 18 2019, 12:49 PM
apol added a subscriber: apol.Mar 18 2019, 2:32 PM
apol added inline comments.
src/kirigamiplugin.cpp
48

qAsConst isn't necessary because the method is already const.
Is it just for readability?

mlaurent added inline comments.Mar 18 2019, 4:17 PM
src/kirigamiplugin.cpp
48

Yep just for readability. It's just for avoiding that we thing it will detach.
For sure here it will not detach.

mart accepted this revision.Mar 19 2019, 11:31 AM
This revision is now accepted and ready to land.Mar 19 2019, 11:31 AM
This revision was automatically updated to reflect the committed changes.