D25756: Port from QStringList::ConstIterator to range-based for

Kai Uwe Broulik noreply at phabricator.kde.org
Thu Dec 5 07:54:58 GMT 2019


broulik added inline comments.

INLINE COMMENTS

> kauthorized.cpp:252
>      QStringList result;
> -    for (QStringList::ConstIterator it = menuIds.begin();
> -            it != menuIds.end(); ++it) {
> -        if (cg.readEntry(*it, true)) {
> -            result.append(*it);
> +    for (const QString id : menuIds) {
> +        if (cg.readEntry(id, true)) {

`const QString &`

REPOSITORY
  R237 KConfig

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

To: nicolasfella, #frameworks
Cc: broulik, 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/7384817e/attachment.html>


More information about the Kde-frameworks-devel mailing list