summaryrefslogtreecommitdiffstats
path: root/tests/auto/corelib/text/qbytearray
diff options
context:
space:
mode:
authorDennis Oberst <dennis.oberst@qt.io>2023-06-01 15:13:56 +0200
committerDennis Oberst <dennis.oberst@qt.io>2023-06-01 19:10:11 +0200
commitc06bdc316fceda4296c4900a24a572bff3da35f9 (patch)
tree69b634a2ec56b7bfa2bcaa79c5938fb87374937d /tests/auto/corelib/text/qbytearray
parent9a4da4569a651f519d44ddd30fc67c25f52ed51c (diff)
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 <marc.mutz@qt.io>
Diffstat (limited to 'tests/auto/corelib/text/qbytearray')
-rw-r--r--tests/auto/corelib/text/qbytearray/tst_qbytearray.cpp3
1 files changed, 2 insertions, 1 deletions
diff --git a/tests/auto/corelib/text/qbytearray/tst_qbytearray.cpp b/tests/auto/corelib/text/qbytearray/tst_qbytearray.cpp
index 8ba44fbc43..97fe367528 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);