[kitemmodels] make it compile without foreach
ClosedPublic

Authored by mlaurent on Mar 15 2019, 6:53 AM.

Details

Summary

make it compile without foreach

Test Plan

autotest ok

Diff Detail

Repository
R275 KItemModels
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 15 2019, 6:53 AM
Restricted Application added a project: Frameworks. · View Herald TranscriptMar 15 2019, 6:53 AM
Restricted Application added a subscriber: kde-frameworks-devel. · View Herald Transcript
mlaurent requested review of this revision.Mar 15 2019, 6:53 AM
dfaure requested changes to this revision.Mar 16 2019, 7:24 PM
dfaure added inline comments.
autotests/proxymodeltestsuite/modelspy.cpp
323

This is a good opportunity to remove this awful C cast.

const QList<QVariantList> lst = *modelSpy;
src/kbreadcrumbselectionmodel.cpp
166–167

const

167–168

const

This revision now requires changes to proceed.Mar 16 2019, 7:24 PM
mlaurent updated this revision to Diff 54073.Mar 17 2019, 10:49 AM

Add missing const, Remove C cast

dfaure accepted this revision.Mar 17 2019, 7:55 PM
This revision is now accepted and ready to land.Mar 17 2019, 7:55 PM
This revision was automatically updated to reflect the committed changes.