Port away from deprecated QSet/QList methods in some places
Needs ReviewPublic

Authored by ahmadsamir on Mar 19 2020, 8:14 AM.

Details

Reviewers
davidedmundson
apol
Group Reviewers
Plasma
Test Plan

make && ctest

Diff Detail

Repository
R120 Plasma Workspace
Branch
l-qset-fromlist (branched from master)
Lint
No Linters Available
Unit
No Unit Test Coverage
Build Status
Buildable 24144
Build 24162: arc lint + arc unit
ahmadsamir created this revision.Mar 19 2020, 8:14 AM
Restricted Application added a project: Plasma. · View Herald TranscriptMar 19 2020, 8:14 AM
ahmadsamir requested review of this revision.Mar 19 2020, 8:14 AM
anthonyfieroni added inline comments.
applets/kicker/plugin/runnermodel.cpp
179

Here should be m_runners = runners to be exactly same as previous. I don't see much benefit of having duplicate items.

ahmadsamir added inline comments.Mar 19 2020, 11:17 AM
applets/kicker/plugin/runnermodel.cpp
179

IIUC, the original code used toSet() to remove duplicates from both "m_runners" and "runners", because QSet doesn't allow duplicate items.

applets/kicker/plugin/runnermodel.cpp
179

But toSet() returns new container m_runners and runners are unmodified.

ahmadsamir added inline comments.Mar 19 2020, 11:41 AM
applets/kicker/plugin/runnermodel.cpp
179

I don't mind reverting that bit, but it seems wasteful to me to throw newRunners away, it is sorted and has no duplicates....

ahmadsamir updated this revision to Diff 78355.Mar 24 2020, 1:59 PM

QStringList has a sort() method