diff options
Diffstat (limited to 'tests/auto/qml/qqmlinfo/tst_qqmlinfo.cpp')
-rw-r--r-- | tests/auto/qml/qqmlinfo/tst_qqmlinfo.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/tests/auto/qml/qqmlinfo/tst_qqmlinfo.cpp b/tests/auto/qml/qqmlinfo/tst_qqmlinfo.cpp index 5ff72de0a0..706102e6fe 100644 --- a/tests/auto/qml/qqmlinfo/tst_qqmlinfo.cpp +++ b/tests/auto/qml/qqmlinfo/tst_qqmlinfo.cpp @@ -178,7 +178,7 @@ void tst_qqmlinfo::types() //### should this be quoted? QTest::ignoreMessage(QtInfoMsg, "<Unknown File>: World"); QString str("Hello World"); - QStringRef ref(&str, 6, 5); + auto ref = QStringView(str).mid(6, 5); qmlInfo(nullptr) << ref; //### should this be quoted? @@ -189,7 +189,7 @@ void tst_qqmlinfo::types() void tst_qqmlinfo::chaining() { QString str("Hello World"); - QStringRef ref(&str, 6, 5); + auto ref = QStringView(str).mid(6, 5); QTest::ignoreMessage(QtInfoMsg, "<Unknown File>: false 1.1 1.2 15 hello 'b' World \"Qt\" true Quick QUrl(\"http://www.qt-project.org\") "); qmlInfo(nullptr) << false << ' ' << 1.1 << ' ' |