D25755: Replace iterators with range-based for

Albert Astals Cid noreply at phabricator.kde.org
Thu Dec 5 13:42:30 GMT 2019


aacid added inline comments.

INLINE COMMENTS

> kded.cpp:622
>      const QStringList dirs = QStandardPaths::locateAll(QStandardPaths::GenericDataLocation, QStringLiteral("kconf_update"), QStandardPaths::LocateDirectory);
> -    for (QStringList::ConstIterator it = dirs.begin();
> -            it != dirs.end();
> -            ++it) {
> -        QString path = *it;
> +    for (const QString dir : dirs) {
> +        QString path = dir;

& for dir

REPOSITORY
  R297 KDED

REVISION DETAIL
  https://phabricator.kde.org/D25755

To: nicolasfella, #frameworks
Cc: aacid, apol, kde-frameworks-devel, LeGast00n, GB_2, michaelh, ngraham, bruns
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.kde.org/pipermail/kde-frameworks-devel/attachments/20191205/962328e7/attachment.html>


More information about the Kde-frameworks-devel mailing list