[KateFileTreeModel] Don't iterate over keys()
ClosedPublic

Authored by broulik on Sep 8 2017, 2:06 PM.

Details

Summary

Creates a temporary list just to iterate it. Use iterators instead.

Diff Detail

Repository
R40 Kate
Lint
Automatic diff as part of commit; lint not applicable.
Unit
Automatic diff as part of commit; unit tests not applicable.
broulik created this revision.Sep 8 2017, 2:06 PM
Restricted Application added a subscriber: kwrite-devel. · View Herald TranscriptSep 8 2017, 2:06 PM
brauch accepted this revision as: brauch.Sep 8 2017, 2:09 PM
brauch added a subscriber: brauch.

range-based for would detach ...?
If you had a reason not to use that, LGTM, thanks!

This revision is now accepted and ready to land.Sep 8 2017, 2:09 PM

Range for also iterates only values

This revision was automatically updated to reflect the committed changes.