Refactor KHistoryComboBox::insertItems
ClosedPublic

Authored by nicolasfella on Dec 4 2019, 11:21 PM.

Details

Summary

Use range-based for instead of iterators
Apply return-early idiom

Test Plan

Still get entries in FolderDialog

Diff Detail

Repository
R284 KCompletion
Lint
Automatic diff as part of commit; lint not applicable.
Unit
Automatic diff as part of commit; unit tests not applicable.
nicolasfella created this revision.Dec 4 2019, 11:21 PM
Restricted Application added a project: Frameworks. · View Herald TranscriptDec 4 2019, 11:21 PM
Restricted Application added a subscriber: kde-frameworks-devel. · View Herald Transcript
nicolasfella requested review of this revision.Dec 4 2019, 11:21 PM
apol accepted this revision.Dec 5 2019, 12:17 AM
This revision is now accepted and ready to land.Dec 5 2019, 12:17 AM
This revision was automatically updated to reflect the committed changes.
mlaurent added inline comments.
src/khistorycombobox.cpp
435

Missing & here no ?