D26438: Runners: Convert foreach to for
Ivan Čukić
noreply at phabricator.kde.org
Mon Jan 6 11:05:59 GMT 2020
ivan requested changes to this revision.
ivan added a comment.
This revision now requires changes to proceed.
@davidedmundson
Yes, the wrapper just serves for keyval iterators to be usable with a range-based for loop. Quite useful if there are a lot of these. In this case, where it is only one loop I agree it might be an overkill.
@meven
Just a single nit-pick left :)
INLINE COMMENTS
> fetchsqlite.cpp:101
> + for (auto entry = bindObjects.constKeyValueBegin(); entry != bindObjects.constKeyValueEnd(); ++entry) {
> + query.bindValue((*entry).first, (*entry).second);
> //qDebug() << "* Bound " << variableName << " to " << query.boundValue(variableName);
`entry->first` and `entry->second`
REPOSITORY
R120 Plasma Workspace
REVISION DETAIL
https://phabricator.kde.org/D26438
To: meven, #plasma, davidedmundson, ivan
Cc: ivan, davidedmundson, plasma-devel, 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/20200106/5ffc4d25/attachment.html>
More information about the Plasma-devel
mailing list