qt6-bb10/tests/auto/printsupport/kernel
Ahmad Samir ea24142ab5 tst_QPrintDevice: compile with QT_NO_FOREACH
The loop was iterating over a temporary, so it couldn't have changed it.
Store the container in a local const variable and port to ranged-for.

Drive-by change: don't call ps->availablePrintDeviceIds() multiple
times.

Task-number: QTBUG-115839
Change-Id: If2cabec68040dc7096acf0b7ddeff72d7c8c7750
Reviewed-by: Volker Hilsheimer <volker.hilsheimer@qt.io>
2023-08-19 19:17:18 +03:00
..
qprintdevice tst_QPrintDevice: compile with QT_NO_FOREACH 2023-08-19 19:17:18 +03:00
qprinter tst_QPrinter: compile with QT_NO_FOREACH 2023-08-19 19:17:17 +03:00
qprinterinfo tests: port assorted trivial uses of Q_FOREACH to ranged for loops 2023-08-14 23:11:54 +03:00
CMakeLists.txt tests: Remove remains of qmake conversion from CMakeLists.txt files 2023-02-17 21:56:49 +01:00