diff options
author | David Skoland <davidskoland@gmail.com> | 2020-10-28 13:25:38 +0100 |
---|---|---|
committer | David Skoland <david.skoland@qt.io> | 2020-10-28 14:44:47 +0100 |
commit | 27bd9cab73a1e7e3d66e6025ace8510f932c5df8 (patch) | |
tree | 4c92072c9a15d681d1c6cdca97f35db88ca7dae2 /tools/qmlplugindump/main.cpp | |
parent | 535adf8d9f6d26d4e9598a9276f23f938fcc7753 (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 'tools/qmlplugindump/main.cpp')
-rw-r--r-- | tools/qmlplugindump/main.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/tools/qmlplugindump/main.cpp b/tools/qmlplugindump/main.cpp index aa78a9c6bc..11856ec5ef 100644 --- a/tools/qmlplugindump/main.cpp +++ b/tools/qmlplugindump/main.cpp @@ -820,7 +820,7 @@ static bool readDependenciesData(QString dependenciesFile, const QByteArray &fil const QStringList requiredKeys = QStringList() << QStringLiteral("name") << QStringLiteral("type"); const auto deps = doc.array(); - for (const QJsonValue &dep : deps) { + for (const QJsonValue dep : deps) { if (dep.isObject()) { QJsonObject obj = dep.toObject(); for (const QString &requiredKey : requiredKeys) |