summaryrefslogtreecommitdiffstats
path: root/tests/auto/corelib/text/qbytearray
diff options
context:
space:
mode:
authorSona Kurazyan <sona.kurazyan@qt.io>2022-03-21 14:44:21 +0100
committerSona Kurazyan <sona.kurazyan@qt.io>2022-05-02 12:23:56 +0200
commit34242f843ec41b63c706e4604ac3a65805d11107 (patch)
treeb8b062e87ee4a8150536e3758ef3772f1dc50ba0 /tests/auto/corelib/text/qbytearray
parent651ba6535c4dc707fb9a473f974f0e27bac9eb98 (diff)
Deprecate _qs and _qba literal operators in favor of _s and _ba
[ChangeLog][QtCore] Deprecated _qs and _qba literal operators for QString and QByteArray in favor of _s and _ba in the Qt::Literals::StringLiterals namespace. Task-number: QTBUG-101408 Change-Id: I26aee0055e3b4c1860de6eda8e0eb857c5b3e11a Reviewed-by: Thiago Macieira <thiago.macieira@intel.com>
Diffstat (limited to 'tests/auto/corelib/text/qbytearray')
-rw-r--r--tests/auto/corelib/text/qbytearray/tst_qbytearray.cpp4
1 files changed, 3 insertions, 1 deletions
diff --git a/tests/auto/corelib/text/qbytearray/tst_qbytearray.cpp b/tests/auto/corelib/text/qbytearray/tst_qbytearray.cpp
index e92011aeb8..582207e006 100644
--- a/tests/auto/corelib/text/qbytearray/tst_qbytearray.cpp
+++ b/tests/auto/corelib/text/qbytearray/tst_qbytearray.cpp
@@ -2238,8 +2238,9 @@ void tst_QByteArray::userDefinedLiterals()
QVERIFY(str2.capacity() >= str2.length());
}
+#if QT_DEPRECATED_SINCE(6, 8)
{
- QByteArray str = "abcd"_qba;
+ QT_IGNORE_DEPRECATIONS(QByteArray str = "abcd"_qba;)
QVERIFY(str.length() == 4);
QCOMPARE(str.capacity(), 0);
@@ -2259,6 +2260,7 @@ void tst_QByteArray::userDefinedLiterals()
QVERIFY(str2.data() != s);
QVERIFY(str2.capacity() >= str2.length());
}
+#endif // QT_DEPRECATED_SINCE(6, 8)
}
void tst_QByteArray::toUpperLower_data()