From c9b50ca9c0ace98454dfe006024e7cdac2168d21 Mon Sep 17 00:00:00 2001 From: Volker Hilsheimer Date: Thu, 26 Nov 2020 21:30:07 +0100 Subject: 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 --- tests/auto/qml/debugger/qv4debugger/tst_qv4debugger.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'tests/auto/qml/debugger') 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")); -- cgit v1.2.3