summaryrefslogtreecommitdiffstats
path: root/tests/auto/corelib/tools
diff options
context:
space:
mode:
authorSona Kurazyan <sona.kurazyan@qt.io>2022-03-18 12:53:51 +0100
committerSona Kurazyan <sona.kurazyan@qt.io>2022-04-07 19:30:17 +0200
commita885f28933896998cd363999b7825b95c365b3f5 (patch)
tree98770f255ac2ef5d367e0eebe4a1d33d6464d2a0 /tests/auto/corelib/tools
parentf5174abec3720b7deec3157e482ca62c0d90fb19 (diff)
Replace uses of _qs with _s in tests
Task-number: QTBUG-101408 Change-Id: If092a68828a1e8056259cf90d035d9a87989244b Reviewed-by: Edward Welbourne <edward.welbourne@qt.io>
Diffstat (limited to 'tests/auto/corelib/tools')
-rw-r--r--tests/auto/corelib/tools/qhash/tst_qhash.cpp4
1 files changed, 3 insertions, 1 deletions
diff --git a/tests/auto/corelib/tools/qhash/tst_qhash.cpp b/tests/auto/corelib/tools/qhash/tst_qhash.cpp
index 994963781c..9267f71adf 100644
--- a/tests/auto/corelib/tools/qhash/tst_qhash.cpp
+++ b/tests/auto/corelib/tools/qhash/tst_qhash.cpp
@@ -39,6 +39,8 @@
#include <qsemaphore.h>
+using namespace Qt::StringLiterals;
+
class tst_QHash : public QObject
{
Q_OBJECT
@@ -2771,7 +2773,7 @@ void tst_QHash::lookupUsingKeyIterator()
qsizetype rehashLimit = minCapacity == 64 ? 63 : 8;
for (char16_t c = u'a'; c <= u'a' + rehashLimit; ++c)
- hash.insert(QString(QChar(c)), u"h"_qs);
+ hash.insert(QString(QChar(c)), u"h"_s);
for (auto it = hash.keyBegin(), end = hash.keyEnd(); it != end; ++it)
QVERIFY(!hash[*it].isEmpty());