D27154: KCM/solid-actions convert foreach
Kai Uwe Broulik
noreply at phabricator.kde.org
Tue Feb 4 15:04:12 GMT 2020
broulik added inline comments.
INLINE COMMENTS
> ActionItem.cpp:143
> if (actionType == ActionItem::DesktopRead) {
> - foreach(KConfigGroup * possibleGroup, actionGroups.values(keyGroup)) {
> + const auto values = actionGroups.values(keyGroup);
> + for (KConfigGroup *possibleGroup : values) {
Don't iterate `values()`, which creates a temporary list, instead use iterators.
REPOSITORY
R119 Plasma Desktop
REVISION DETAIL
https://phabricator.kde.org/D27154
To: meven, ervin, #plasma, davidedmundson
Cc: broulik, plasma-devel, Orage, LeGast00n, The-Feren-OS-Dev, jraleigh, zachus, fbampaloukas, GB_2, ragreen, ZrenBot, ngraham, alexeymin, himcesjf, lesliezhai, ali-mohamed, jensreuterberg, abetts, sebas, apol, ahiemstra, mart
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.kde.org/pipermail/plasma-devel/attachments/20200204/f3879d1b/attachment-0001.html>
More information about the Plasma-devel
mailing list