Convert foreach to for loops
ClosedPublic

Authored by meven on Mar 20 2019, 10:42 AM.

Details

Test Plan

Compile

Diff Detail

Repository
R318 Dolphin
Lint
Automatic diff as part of commit; lint not applicable.
Unit
Automatic diff as part of commit; unit tests not applicable.
meven created this revision.Mar 20 2019, 10:42 AM
Restricted Application added a project: Dolphin. · View Herald TranscriptMar 20 2019, 10:42 AM
Restricted Application added a subscriber: kfm-devel. · View Herald Transcript
meven requested review of this revision.Mar 20 2019, 10:42 AM
ngraham accepted this revision.Mar 20 2019, 3:03 PM
This revision is now accepted and ready to land.Mar 20 2019, 3:03 PM
src/panels/information/informationpanel.cpp
188–189

This will detach the container. Please put customContextMenuActions() in a const variable first.

elvisangelaccio requested changes to this revision.Mar 20 2019, 7:34 PM
This revision now requires changes to proceed.Mar 20 2019, 7:34 PM
meven updated this revision to Diff 54456.Mar 20 2019, 9:56 PM

Avoid detaching a const

meven marked an inline comment as done.Mar 20 2019, 9:56 PM
elvisangelaccio accepted this revision.Mar 20 2019, 10:05 PM
This revision is now accepted and ready to land.Mar 20 2019, 10:05 PM

For future reference https://www.kdab.com/goodbye-q_foreach/ for why and how to replace foreach

This revision was automatically updated to reflect the committed changes.