qt5base-lts/tests/auto/dbus
Ahmad Samir 8e0281a8be tests/auto/: port Q_FOREACH to ranged-for, local const containers
These are local containers that are either:
- Already const and didn't need Q_FOREACH to begin with
- Can be simply made const, just by adding const keyword

In one case the unittest checked that the container's size is 1, so use
list.first() instead of a for-loop.

In files where Q_FOREACH isn't used any more, remove
"#undef QT_NO_FOREACH". Also remove those files from NO_PCH_SOURCES.

Drive-by changes:
- Remove parenthesis from one-line for-loops
- Make the for-loop variable a const& where a copy isn't needed

Task-number: QTBUG-115839
Change-Id: Ide34122b9cda798b80c4ca9d2d5af76024bc7a92
Reviewed-by: Volker Hilsheimer <volker.hilsheimer@qt.io>
2023-08-19 16:29:25 +03:00
..
qdbusabstractadaptor CMake: Make qtbase tests standalone projects 2023-07-05 15:09:32 +02:00
qdbusabstractinterface CMake: Make qtbase tests standalone projects 2023-07-05 15:09:32 +02:00
qdbusconnection tst_qdbusconnection: iterate over member container directly 2023-08-15 21:27:50 +03:00
qdbusconnection_delayed CMake: Make qtbase tests standalone projects 2023-07-05 15:09:32 +02:00
qdbusconnection_no_app CMake: Make qtbase tests standalone projects 2023-07-05 15:09:32 +02:00
qdbusconnection_no_bus CMake: Make qtbase tests standalone projects 2023-07-05 15:09:32 +02:00
qdbusconnection_no_libdbus CMake: Make qtbase tests standalone projects 2023-07-05 15:09:32 +02:00
qdbusconnection_signalorder CMake: Make qtbase tests standalone projects 2023-07-05 15:09:32 +02:00
qdbusconnection_spyhook CMake: Make qtbase tests standalone projects 2023-07-05 15:09:32 +02:00
qdbuscontext CMake: Make qtbase tests standalone projects 2023-07-05 15:09:32 +02:00
qdbusinterface CMake: Make qtbase tests standalone projects 2023-07-05 15:09:32 +02:00
qdbuslocalcalls CMake: Make qtbase tests standalone projects 2023-07-05 15:09:32 +02:00
qdbusmarshall tests/auto/: port Q_FOREACH to ranged-for, local const containers 2023-08-19 16:29:25 +03:00
qdbusmetaobject CMake: Make qtbase tests standalone projects 2023-07-05 15:09:32 +02:00
qdbusmetatype Fix spelling of D-Bus in the source code 2023-07-06 21:51:29 +02:00
qdbuspendingcall CMake: Make qtbase tests standalone projects 2023-07-05 15:09:32 +02:00
qdbuspendingreply CMake: Make qtbase tests standalone projects 2023-07-05 15:09:32 +02:00
qdbusreply CMake: Make qtbase tests standalone projects 2023-07-05 15:09:32 +02:00
qdbusservicewatcher CMake: Make qtbase tests standalone projects 2023-07-05 15:09:32 +02:00
qdbusthreading CMake: Make qtbase tests standalone projects 2023-07-05 15:09:32 +02:00
qdbustype CMake: Make qtbase tests standalone projects 2023-07-05 15:09:32 +02:00
qdbusxmlparser tests/auto/: port Q_FOREACH to ranged-for, local const containers 2023-08-19 16:29:25 +03:00
CMakeLists.txt QDBusConnectionPrivate: Fix handling of queued messages 2023-05-11 19:58:12 +02:00