Modernize code
ClosedPublic

Authored by jbbgameich on Jun 19 2019, 6:11 PM.

Details

Reviewers
apol
Group Reviewers
Plasma: Mobile
Commits
R732:efabc0dc39d1: Modernize code
Summary
  • port away from Q_FOREACH
  • use override
Test Plan

Start the plasmaphonedialer or plasma-phonebook and check whether contacts are still being displayed.

Diff Detail

Repository
R732 KPeople VCard Support
Branch
modernize (branched from master)
Lint
No Linters Available
Unit
No Unit Test Coverage
Build Status
Buildable 12985
Build 13003: arc lint + arc unit
jbbgameich requested review of this revision.Jun 19 2019, 6:11 PM
jbbgameich created this revision.
apol added a subscriber: apol.Jun 20 2019, 10:42 AM

There's some explanation here: https://www.kdab.com/goodbye-q_foreach/

src/kpeoplevcard.cpp
64

will need to move the phoneNumbers in a separate const variable.

105

const

111

Needs qAsConst

jbbgameich updated this revision to Diff 60160.Jun 20 2019, 5:12 PM

More const

apol accepted this revision.Jun 20 2019, 11:30 PM
This revision is now accepted and ready to land.Jun 20 2019, 11:30 PM
This revision was automatically updated to reflect the committed changes.