diff options
author | Sona Kurazyan <sona.kurazyan@qt.io> | 2022-03-18 12:53:51 +0100 |
---|---|---|
committer | Sona Kurazyan <sona.kurazyan@qt.io> | 2022-04-07 19:30:17 +0200 |
commit | a885f28933896998cd363999b7825b95c365b3f5 (patch) | |
tree | 98770f255ac2ef5d367e0eebe4a1d33d6464d2a0 /tests/auto/gui/util | |
parent | f5174abec3720b7deec3157e482ca62c0d90fb19 (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/gui/util')
-rw-r--r-- | tests/auto/gui/util/qdesktopservices/tst_qdesktopservices.cpp | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/tests/auto/gui/util/qdesktopservices/tst_qdesktopservices.cpp b/tests/auto/gui/util/qdesktopservices/tst_qdesktopservices.cpp index 4df34280b0..00e7f38e0f 100644 --- a/tests/auto/gui/util/qdesktopservices/tst_qdesktopservices.cpp +++ b/tests/auto/gui/util/qdesktopservices/tst_qdesktopservices.cpp @@ -31,6 +31,8 @@ #include <qdesktopservices.h> #include <qregularexpression.h> +using namespace Qt::StringLiterals; + class tst_qdesktopservices : public QObject { Q_OBJECT @@ -78,8 +80,8 @@ void tst_qdesktopservices::handlers() QDesktopServices::setUrlHandler(QString("bar"), &barHandler, "handle"); #ifndef CAN_IMPLICITLY_UNSET const auto unsetHandlers = qScopeGuard([] { - QDesktopServices::unsetUrlHandler(u"bar"_qs); - QDesktopServices::unsetUrlHandler(u"foo"_qs); + QDesktopServices::unsetUrlHandler(u"bar"_s); + QDesktopServices::unsetUrlHandler(u"foo"_s); }); #endif |