aboutsummaryrefslogtreecommitdiffstats
path: root/tests/auto/qml/qjsengine
diff options
context:
space:
mode:
authorSona Kurazyan <sona.kurazyan@qt.io>2022-03-21 10:21:18 +0100
committerSona Kurazyan <sona.kurazyan@qt.io>2022-04-29 09:47:43 +0200
commit2c9c1590e6c9dc59bd786f4b41af32f1994bed2d (patch)
tree7cc1302426732093f1c88c1d7621a95854ade0e2 /tests/auto/qml/qjsengine
parentecc87ea07723998dcfa947353e4259ec8d057035 (diff)
Replace uses of deprecated _qs with _s/QStringLiteral
Task-number: QTBUG-101408 Change-Id: Ic925751b73f52d8fa5add5cacc52d6dd6ea2dc27 Reviewed-by: Ulf Hermann <ulf.hermann@qt.io>
Diffstat (limited to 'tests/auto/qml/qjsengine')
-rw-r--r--tests/auto/qml/qjsengine/tst_qjsengine.cpp8
1 files changed, 5 insertions, 3 deletions
diff --git a/tests/auto/qml/qjsengine/tst_qjsengine.cpp b/tests/auto/qml/qjsengine/tst_qjsengine.cpp
index 9dc109b713..49fd064311 100644
--- a/tests/auto/qml/qjsengine/tst_qjsengine.cpp
+++ b/tests/auto/qml/qjsengine/tst_qjsengine.cpp
@@ -49,6 +49,8 @@
#define NO_INLINE __attribute__((noinline))
#endif
+using namespace Qt::StringLiterals;
+
Q_DECLARE_METATYPE(QList<int>)
Q_DECLARE_METATYPE(QObjectList)
@@ -5226,11 +5228,11 @@ void tst_QJSEngine::concatAfterUnshift()
test = test.concat([])
return test
})()
- )"_qs);
+ )"_s);
QVERIFY2(!value.isError(), qPrintable(value.toString()));
QVERIFY(value.isArray());
- QCOMPARE(value.property(0).toString(), u"val1"_qs);
- QCOMPARE(value.property(1).toString(), u"val2"_qs);
+ QCOMPARE(value.property(0).toString(), u"val1"_s);
+ QCOMPARE(value.property(1).toString(), u"val2"_s);
}
void tst_QJSEngine::sortSparseArray()