aboutsummaryrefslogtreecommitdiffstats
path: root/tests
diff options
context:
space:
mode:
Diffstat (limited to 'tests')
-rw-r--r--tests/auto/qml/debugger/qqmldebugjs/tst_qqmldebugjs.cpp2
-rw-r--r--tests/auto/qml/qmlimportscanner/tst_qmlimportscanner.cpp2
2 files changed, 2 insertions, 2 deletions
diff --git a/tests/auto/qml/debugger/qqmldebugjs/tst_qqmldebugjs.cpp b/tests/auto/qml/debugger/qqmldebugjs/tst_qqmldebugjs.cpp
index dd201d1cfd..2561f19b11 100644
--- a/tests/auto/qml/debugger/qqmldebugjs/tst_qqmldebugjs.cpp
+++ b/tests/auto/qml/debugger/qqmldebugjs/tst_qqmldebugjs.cpp
@@ -969,7 +969,7 @@ void tst_QQmlDebugJS::encodeQmlScope()
if (scopes.count() < 2)
scopesFailed = true;
- for (const QJsonValue &scope : scopes) {
+ for (const QJsonValue scope : scopes) {
++numExpectedScopes;
m_client->scope(scope.toObject().value("index").toInt());
}
diff --git a/tests/auto/qml/qmlimportscanner/tst_qmlimportscanner.cpp b/tests/auto/qml/qmlimportscanner/tst_qmlimportscanner.cpp
index 6e06623fa6..2a6899080d 100644
--- a/tests/auto/qml/qmlimportscanner/tst_qmlimportscanner.cpp
+++ b/tests/auto/qml/qmlimportscanner/tst_qmlimportscanner.cpp
@@ -145,7 +145,7 @@ void TestQmlimportscanner::runQmlimportscanner(const QString &mode, const QStrin
const QJsonArray generatedArray = generated.array();
QJsonArray expectedArray = expected.array();
- for (const QJsonValue &value : generatedArray) {
+ for (const QJsonValue value : generatedArray) {
QVERIFY(value.isObject());
QJsonObject object = value.toObject();