use an initializer list instead of calling insert a million times
ClosedPublic

Authored by sitter on Jul 13 2017, 10:09 AM.

Details

Summary

looks nicer, is probably also more optimized, and allows us to tag the
dict as const.

Test Plan

builds and kaboutdatatest passes

Diff Detail

Repository
R244 KCoreAddons
Lint
Automatic diff as part of commit; lint not applicable.
Unit
Automatic diff as part of commit; unit tests not applicable.
sitter created this revision.Jul 13 2017, 10:09 AM
Restricted Application added a project: Frameworks. · View Herald TranscriptJul 13 2017, 10:09 AM
Restricted Application added a subscriber: Frameworks. · View Herald Transcript
kfunk accepted this revision.Jul 13 2017, 10:29 AM
kfunk added a subscriber: kfunk.
kfunk added inline comments.
src/lib/kaboutdata.cpp
352–370

While at it: ldict -> licenseDict?

This revision is now accepted and ready to land.Jul 13 2017, 10:29 AM
This revision was automatically updated to reflect the committed changes.