kdeconnect-kde/interfaces
Jean Vincent c864267f04 Replace Q_FOREACH with C++11 range-for
Summary:
The use of Q_FOREACH is advised against (https://doc.qt.io/qt-5/qtglobal.html#Q_FOREACH) since Qt 5.7 and will eventually be removed from Qt.

I replaced all occurrences with the range-for loop introduced in C++11 (except for the one in daemon.cpp in deviceIdByName which might have a bug / typo in it).

I added const to the container or casted it with qAsConst when appropriate to avoid unnecessary copies.

(This is my first submission. I did all the unit tests, and they all passed but I don't know how to show it here.)

Reviewers: #kde_connect, nicolasfella, apol

Reviewed By: #kde_connect, nicolasfella, apol

Subscribers: albertvaka, apol, nicolasfella

Tags: #kde_connect

Differential Revision: https://phabricator.kde.org/D6724
2017-07-21 09:57:19 +02:00
..
KDEConnect Reorganize sources 2014-06-14 15:22:40 +02:00
CMakeLists.txt Add remotekeyboard plugin 2017-01-23 09:08:27 +01:00
dbushelpers.h Introduce a URL handler and offer handling tel:/// urls 2017-06-09 13:42:16 +02:00
dbusinterfaces.cpp Debug pairing handlers 2017-01-25 01:18:14 +01:00
dbusinterfaces.h Expose pair requests on the KCM 2017-02-20 21:00:26 +01:00
devicesmodel.cpp Replace Q_FOREACH with C++11 range-for 2017-07-21 09:57:19 +02:00
devicesmodel.h Remove unused method 2017-01-13 17:48:37 +01:00
devicessortproxymodel.cpp Fixed old style connects with clazy 2016-11-26 15:14:19 +01:00
devicessortproxymodel.h Clean up use of virtual and override keywords 2016-06-20 19:22:29 +02:00
interfaces_debug.h Fix various krazy2 warnings 2015-08-21 22:38:54 +06:00
KDEConnectConfig.cmake.in Reorganize sources 2014-06-14 15:22:40 +02:00
modeltest.cpp Fix various krazy2 warnings 2015-08-21 22:38:54 +06:00
modeltest.h Fix various krazy2 warnings 2015-08-21 22:38:54 +06:00
notificationsmodel.cpp Replace Q_FOREACH with C++11 range-for 2017-07-21 09:57:19 +02:00
notificationsmodel.h show icon and reply toolbutton in plasmoid 2017-06-01 16:17:45 +02:00