diff options
Diffstat (limited to 'tests/benchmarks/qml/animation/tst_animation.cpp')
-rw-r--r-- | tests/benchmarks/qml/animation/tst_animation.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/tests/benchmarks/qml/animation/tst_animation.cpp b/tests/benchmarks/qml/animation/tst_animation.cpp index 4f693f9fa8..59f5a57f5c 100644 --- a/tests/benchmarks/qml/animation/tst_animation.cpp +++ b/tests/benchmarks/qml/animation/tst_animation.cpp @@ -107,8 +107,8 @@ void tst_animation::animationelements_data() { QTest::addColumn<QString>("type"); - QSet<QString> types = QQmlMetaType::qmlTypeNames().toSet(); - foreach (const QString &type, types) { + const QSet<QString> types = QQmlMetaType::qmlTypeNames().toSet(); + for (const QString &type : types) { if (type.contains(QLatin1String("Animation"))) QTest::newRow(type.toLatin1()) << type; } |