qt5base-lts/tests/auto/corelib
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
..
animation tst_QParallelAnimationGroup: fix memleak 2023-07-14 14:56:03 +02:00
global Make qYieldCpu() public API 2023-07-25 07:21:56 -07:00
io tst_QFile: restrict to running on Linux 2023-08-03 20:49:51 -07:00
ipc QNativeIpcKey: add qHash() function 2023-07-25 12:31:04 +02:00
itemmodels tst_QSortFilterProxyModel: fix mem-leaks II: sortStable() 2023-07-19 04:51:26 +00:00
kernel QEventDispatcher: test with glib disabled too 2023-08-11 16:45:40 +03:00
mimetypes tst_QMimeDatabase{Xml,Cache}: make the two siblings behave the same 2023-08-09 23:57:21 +02:00
platform CMake: Make corelib tests standalone projects 2023-07-05 15:09:32 +02:00
plugin tests: port assorted trivial uses of Q_FOREACH to ranged for loops 2023-08-14 23:11:54 +03:00
serialization CI: Enable tests under corelib/serialization for Wasm platform 2023-08-14 16:08:32 +02:00
text tst_QTextBoundaryFinder: clean out the last two foreach uses 2023-08-11 19:58:01 +02:00
thread Tests: Fix typo in qfuture test 2023-08-07 23:56:10 +02:00
time Update QTimeZone data to CLDR v43 2023-08-07 19:51:09 +02:00
tools CMake: remove check for cxx11_future 2023-08-02 12:36:18 -07:00
CMakeLists.txt tests: Remove remains of qmake conversion from CMakeLists.txt files 2023-02-17 21:56:49 +01:00