aboutsummaryrefslogtreecommitdiffstats
path: root/src/qml/debugger
diff options
context:
space:
mode:
authorDavid Skoland <davidskoland@gmail.com>2020-10-28 13:25:38 +0100
committerDavid Skoland <david.skoland@qt.io>2020-10-28 14:44:47 +0100
commit27bd9cab73a1e7e3d66e6025ace8510f932c5df8 (patch)
tree4c92072c9a15d681d1c6cdca97f35db88ca7dae2 /src/qml/debugger
parent535adf8d9f6d26d4e9598a9276f23f938fcc7753 (diff)
Standardize QJsonArray iteration
When using refs as loop variables, the clang compiler complains (with default settings). This prevents that. Note that QJsonValueRef is used "behind the scenes", which makes this iteration method correct. Change-Id: I5a5f58ca8ad3887bce2009231cbae5a57c107697 Reviewed-by: Volker Hilsheimer <volker.hilsheimer@qt.io>
Diffstat (limited to 'src/qml/debugger')
-rw-r--r--src/qml/debugger/qqmldebugconnector.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/qml/debugger/qqmldebugconnector.cpp b/src/qml/debugger/qqmldebugconnector.cpp
index 0ef40d6911..74b10e64d7 100644
--- a/src/qml/debugger/qqmldebugconnector.cpp
+++ b/src/qml/debugger/qqmldebugconnector.cpp
@@ -148,7 +148,7 @@ QQmlDebugConnector *QQmlDebugConnector::instance()
for (const QJsonObject &object : metaData) {
const auto keys = object.value(QLatin1String("MetaData")).toObject()
.value(QLatin1String("Keys")).toArray();
- for (const QJsonValue &key : keys) {
+ for (const QJsonValue key : keys) {
QString keyString = key.toString();
if (params->services.isEmpty() || params->services.contains(keyString))
loadQQmlDebugService(keyString);