summaryrefslogtreecommitdiffstats
path: root/tests
diff options
context:
space:
mode:
authorDennis Oberst <dennis.oberst@qt.io>2023-06-01 15:13:56 +0200
committerQt Cherry-pick Bot <cherrypick_bot@qt-project.org>2023-06-01 17:28:20 +0000
commit944457a0ab8462cd3c5a7bd6cde59a28bbb6369a (patch)
tree173773050be1245acb943bc9e2c215a828656321 /tests
parentac4cece1fa259e56f640115ea5081b8103a72b0a (diff)
tst_QByteArray: add Qt::StringLiterals to the namespace scope
... and remove all previous function-level occurrences. Change-Id: I90df40922e3aed15efc04e885d9f54c577a948b6 Reviewed-by: Marc Mutz <marc.mutz@qt.io> (cherry picked from commit c06bdc316fceda4296c4900a24a572bff3da35f9) Reviewed-by: Qt Cherry-pick Bot <cherrypick_bot@qt-project.org>
Diffstat (limited to 'tests')
-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 179843cf4f..6972541847 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
@@ -2181,7 +2183,6 @@ void tst_QByteArray::literals()
void tst_QByteArray::userDefinedLiterals()
{
{
- using namespace Qt::StringLiterals;
QByteArray str = "abcd"_ba;
QVERIFY(str.size() == 4);