summaryrefslogtreecommitdiffstats
path: root/tests/auto/core/qframeallocator/tst_qframeallocator.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'tests/auto/core/qframeallocator/tst_qframeallocator.cpp')
-rw-r--r--tests/auto/core/qframeallocator/tst_qframeallocator.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/tests/auto/core/qframeallocator/tst_qframeallocator.cpp b/tests/auto/core/qframeallocator/tst_qframeallocator.cpp
index 0f50b5d38..3d2355eb8 100644
--- a/tests/auto/core/qframeallocator/tst_qframeallocator.cpp
+++ b/tests/auto/core/qframeallocator/tst_qframeallocator.cpp
@@ -605,7 +605,7 @@ void tst_QFrameAllocator::allocateSubclass()
QCOMPARE(composeds.count(), 256);
- Q_FOREACH (composed *c, composeds) {
+ for (composed *c : qAsConst(composeds)) {
subclass *s = static_cast<subclass *>(c);
s->toto = 2586.0f;
}