aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorVolker Hilsheimer <[email protected]>2022-02-16 12:51:05 +0100
committerVolker Hilsheimer <[email protected]>2022-02-16 14:44:39 +0100
commitcccca1ec0ef17eb76f645023cbf6531ab6f17076 (patch)
treeb35c90af9f58d1e10807f22a2469e10ec300e45b
parent868d90eba77facc908f2e472fe22b901c1021584 (diff)
Fix build after QJsonArray change to use QJsonValueConstRef
Follows up on qtbase:f5762cd4b3130a650044863c5be132056f05daa5. Use auto instead of specific QJsonValue*Ref type to avoid need for orchtestrating with dependency update. Change-Id: Ib47d5d8ab8373562684b42a90c97634e07869328 Reviewed-by: Sona Kurazyan <[email protected]>
-rw-r--r--tests/auto/qml/debugger/qqmldebugjs/tst_qqmldebugjs.cpp4
1 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 69bb86ef09..2c7d2ed9f5 100644
--- a/tests/auto/qml/debugger/qqmldebugjs/tst_qqmldebugjs.cpp
+++ b/tests/auto/qml/debugger/qqmldebugjs/tst_qqmldebugjs.cpp
@@ -1075,7 +1075,7 @@ void tst_QQmlDebugJS::letConstLocals()
const auto value = m_client->response();
if (value.command == QStringLiteral("frame")) {
const auto scopes = value.body.toObject().value(QStringLiteral("scopes")).toArray();
- for (const QJsonValueRef scope : scopes) {
+ for (const auto scope : scopes) {
const auto scopeObject = scope.toObject();
const int type = scopeObject.value("type").toInt();
if (type == 1 || type == 4) {
@@ -1087,7 +1087,7 @@ void tst_QQmlDebugJS::letConstLocals()
} else if (value.command == QStringLiteral("scope")) {
const auto props = value.body.toObject().value(QStringLiteral("object")).toObject()
.value(QStringLiteral("properties")).toArray();
- for (const QJsonValueRef prop : props) {
+ for (const auto prop : props) {
const auto propObj = prop.toObject();
QString name = propObj.value(QStringLiteral("name")).toString();
QVERIFY(name.length() == 1);