diff options
author | Robert Griebl <robert.griebl@qt.io> | 2023-12-20 23:29:01 +0100 |
---|---|---|
committer | Robert Griebl <robert.griebl@qt.io> | 2024-01-08 22:12:23 +0100 |
commit | d82261fd1cce14a63902033e9b1305f0312af856 (patch) | |
tree | 26600b8bd23a9d6d69e41ccd959fd8fe3df18cbb /src/intent-client-lib/intentclientrequest.cpp | |
parent | 94abcf0a5b20aea8faa51068d7d243d3b83840a6 (diff) |
Modernize string literals
Replace all our custom qSL/qL1S/qL1C macros with standard C++ and
QString unicode string literals.
Change-Id: I9e0b69fb46525421f408f260518a69b8f8125d99
Pick-to: 6.7
Reviewed-by: Dominik Holland <dominik.holland@qt.io>
Diffstat (limited to 'src/intent-client-lib/intentclientrequest.cpp')
-rw-r--r-- | src/intent-client-lib/intentclientrequest.cpp | 9 |
1 files changed, 6 insertions, 3 deletions
diff --git a/src/intent-client-lib/intentclientrequest.cpp b/src/intent-client-lib/intentclientrequest.cpp index e077fe35..a11e697b 100644 --- a/src/intent-client-lib/intentclientrequest.cpp +++ b/src/intent-client-lib/intentclientrequest.cpp @@ -12,6 +12,9 @@ #include <QPointer> #include <QTimer> +using namespace Qt::StringLiterals; + + QT_BEGIN_NAMESPACE_AM /*! \qmltype IntentRequest @@ -155,7 +158,7 @@ IntentClientRequest::~IntentClientRequest() { // the incoming request was gc'ed on the JavaScript side, but no reply was sent yet if ((direction() == Direction::ToApplication) && !m_finished && !m_broadcast) - sendErrorReply(qSL("Request not handled")); + sendErrorReply(u"Request not handled"_s); } QUuid IntentClientRequest::requestId() const @@ -285,9 +288,9 @@ void IntentClientRequest::startTimeout(int timeout) QTimer::singleShot(timeout, this, [this, timeout]() { if (!m_finished) { if (direction() == Direction::ToApplication) - sendErrorReply(qSL("Intent request to application timed out after %1 ms").arg(timeout)); + sendErrorReply(u"Intent request to application timed out after %1 ms"_s.arg(timeout)); else - setErrorMessage(qSL("No reply received from Intent server after %1 ms").arg(timeout)); + setErrorMessage(u"No reply received from Intent server after %1 ms"_s.arg(timeout)); } }); } |