From c06bdc316fceda4296c4900a24a572bff3da35f9 Mon Sep 17 00:00:00 2001 From: Dennis Oberst Date: Thu, 1 Jun 2023 15:13:56 +0200 Subject: [PATCH] tst_QByteArray: add Qt::StringLiterals to the namespace scope ... and remove all previous function-level occurrences. Pick-to: 6.5 Change-Id: I90df40922e3aed15efc04e885d9f54c577a948b6 Reviewed-by: Marc Mutz --- tests/auto/corelib/text/qbytearray/tst_qbytearray.cpp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/tests/auto/corelib/text/qbytearray/tst_qbytearray.cpp b/tests/auto/corelib/text/qbytearray/tst_qbytearray.cpp index 8ba44fbc43c..97fe367528c 100644 --- a/tests/auto/corelib/text/qbytearray/tst_qbytearray.cpp +++ b/tests/auto/corelib/text/qbytearray/tst_qbytearray.cpp @@ -12,6 +12,8 @@ #include "../shared/test_number_shared.h" +using namespace Qt::StringLiterals; + class tst_QByteArray : public QObject { Q_OBJECT @@ -2189,7 +2191,6 @@ void tst_QByteArray::literals() void tst_QByteArray::userDefinedLiterals() { { - using namespace Qt::StringLiterals; QByteArray str = "abcd"_ba; QVERIFY(str.size() == 4);