D23839: Port away from Qt's foreach

Vlad Zagorodniy noreply at phabricator.kde.org
Tue Sep 10 16:41:32 BST 2019


zzag added inline comments.

INLINE COMMENTS

> kossebau wrote in kwindowsystem_threadtest.cpp:61
> Would a const ref make sense here, given the type nature of WId which boils down to a integer matching the byte size of a pointer?

I asked that because `for (const Type &item : collection) {` is more common. I know that const ref doesn't have any advantages here.

REPOSITORY
  R278 KWindowSystem

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

To: kossebau, #kwin, zzag
Cc: aacid, 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/20190910/30f33c40/attachment.html>


More information about the Kde-frameworks-devel mailing list