qt5base-lts/tests/auto/tools/qmakelib
Ahmad Samir 6864576577 tst_qmakelib: compile with QT_NO_FOREACH
proEval(), proParser(): the loop was iterating over a temporary so it
couldn't have changed it. Hold the container in a const auto variable
and use ranged-for.

formatValue(): iterating over a const QList& parameter, and the container
isn't changed at the call sites during iterating, so Q_FOREACH wasn't
needed to beging with. Use ranged-for instead.

Task-number: QTBUG-115839
Change-Id: Idabe0bbd84b5bcc86cef275f80497651353a4d9e
Reviewed-by: Joerg Bornemann <joerg.bornemann@qt.io>
2023-08-19 19:17:17 +03:00
..
testdata qmake: let discard_from() discard function definitions as well 2016-11-15 22:44:23 +00:00
.gitignore add test for the qmake library 2015-02-25 13:54:33 +00:00
CMakeLists.txt tst_qmakelib: compile with QT_NO_FOREACH 2023-08-19 19:17:17 +03:00
evaltest.cpp tst_qmakelib: compile with QT_NO_FOREACH 2023-08-19 19:17:17 +03:00
parsertest.cpp tst_qmakelib: compile with QT_NO_FOREACH 2023-08-19 19:17:17 +03:00
tst_qmakelib.cpp Use SPDX license identifiers 2022-05-16 16:37:38 +02:00
tst_qmakelib.h Use SPDX license identifiers 2022-05-16 16:37:38 +02:00