qt5base-lts/tests/auto/tools
Marc Mutz f2f8820073 tests: port assorted trivial uses of Q_FOREACH to ranged for loops
All of these fall into the trivial category: loops over (readily made)
const local containers. As such, they cannot possibly depend on the
safety copy that Q_FOREACH performs, so are safe to port as-is to
ranged for loops.

There may be more where these came from, but these were the ones that
stood out as immediately obvious when scanning the 100s of uses in
qtbase, so I preferred to directly fix them over white-listing their
files with QT_NO_FOREACH (which still may be necessary for some files,
as this patch may not port all uses in that file).

Pick-to: 6.6 6.5
Task-nubmber: QTBUG-115839
Change-Id: I7b7893bec8254f902660dac24167113aca855029
Reviewed-by: Fabian Kosmale <fabian.kosmale@qt.io>
Reviewed-by: Mårten Nordheim <marten.nordheim@qt.io>
Reviewed-by: Ivan Solovev <ivan.solovev@qt.io>
2023-08-14 23:11:54 +03:00
..
macdeployqt tests: port assorted trivial uses of Q_FOREACH to ranged for loops 2023-08-14 23:11:54 +03:00
moc QObject: replace _q_reregisterTimers with a lambda 2023-07-31 01:52:25 +03:00
qdbuscpp2xml tst_qdbuscpp2xml: Remove unused variables 2023-08-03 16:09:17 +02:00
qdbusxml2cpp qdbusxml2cpp: Improve error reporting 2023-07-06 21:51:25 +02:00
qmake CMake: Make qtbase tests standalone projects 2023-07-05 15:09:32 +02:00
qmakelib CMake: Make qtbase tests standalone projects 2023-07-05 15:09:32 +02:00
qt_cmake_create CMake: Make qtbase tests standalone projects 2023-07-05 15:09:32 +02:00
rcc tst_rcc: port away from Q_FOREACH 2023-08-08 22:03:05 +02:00
uic CMake: Make qtbase tests standalone projects 2023-07-05 15:09:32 +02:00
windeployqt CMake: Make qtbase tests standalone projects 2023-07-05 15:09:32 +02:00
CMakeLists.txt tests: Remove remains of qmake conversion from CMakeLists.txt files 2023-02-17 21:56:49 +01:00