Fix all compilation issues after enabling QT_DISABLE_DEPRECATED_UP_TO

This commit is contained in:
luisangelsm
2026-03-30 15:48:02 +02:00
parent 12a5949b16
commit e6cbfa634b
49 changed files with 227 additions and 204 deletions

View File

@ -21,9 +21,10 @@ void TestRegistry::registerTest(QObject* test) {
int TestRegistry::runTests(int argc, char* argv[]) {
int result = 0;
foreach(QObject* test, tests_) {
result |= QTest::qExec(test, argc, argv);
}
const auto &tests = tests_;
for (auto *test : tests) {
result |= QTest::qExec(test, argc, argv);
}
return result;
}