aboutsummaryrefslogtreecommitdiffstats
path: root/tests/auto/qml
diff options
context:
space:
mode:
authorVolker Hilsheimer <volker.hilsheimer@qt.io>2020-11-26 21:30:07 +0100
committerVolker Hilsheimer <volker.hilsheimer@qt.io>2020-11-30 12:00:05 +0100
commitc9b50ca9c0ace98454dfe006024e7cdac2168d21 (patch)
tree3c8716e93abc9a7fcc4d456ea132c11e28f1d420 /tests/auto/qml
parent455932cb91978de4ff6dc35d87c151135dbd8a71 (diff)
Replace some more foreach with ranged for
Fix coding style as a drive-by. No need for qAsConst as QVarLenghArray is not an implicitly shared class. Change-Id: I8a9ec3c76f8f6459a1605b02f4682ab3ce091d1a Reviewed-by: Fabian Kosmale <fabian.kosmale@qt.io>
Diffstat (limited to 'tests/auto/qml')
-rw-r--r--tests/auto/qml/debugger/qv4debugger/tst_qv4debugger.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/tests/auto/qml/debugger/qv4debugger/tst_qv4debugger.cpp b/tests/auto/qml/debugger/qv4debugger/tst_qv4debugger.cpp
index 84f5eebd10..f2011a11be 100644
--- a/tests/auto/qml/debugger/qv4debugger/tst_qv4debugger.cpp
+++ b/tests/auto/qml/debugger/qv4debugger/tst_qv4debugger.cpp
@@ -238,7 +238,7 @@ public:
QJsonObject object = job.returnValue();
object = object.value(QLatin1String("object")).toObject();
QVERIFY(!object.contains("ref") || object.contains("properties"));
- foreach (const QJsonValue &value, object.value(QLatin1String("properties")).toArray()) {
+ for (const QJsonValue value : object.value(QLatin1String("properties")).toArray()) {
QJsonObject property = value.toObject();
QString name = property.value(QLatin1String("name")).toString();
property.remove(QLatin1String("name"));