diff options
author | Anton Kudryavtsev <anton.kudryavtsev@vk.team> | 2023-08-17 14:15:43 +0300 |
---|---|---|
committer | Anton Kudryavtsev <anton.kudryavtsev@vk.team> | 2023-10-08 11:38:41 +0300 |
commit | 4f1bb8ee40f2245375ee2afef0e45cc766fcd2d4 (patch) | |
tree | c6a0cbae8d4ae752f8e6d9496b6bf1489d38152b /src/plugins/platforms/windows/qwindowsservices.cpp | |
parent | b6e7aad064962418083ac1a7c3d5335ce819898b (diff) |
platform plugins: use string view types more
Change-Id: I793cfff1afca6b98a672615e33a19f8210e429dd
Reviewed-by: Qt CI Bot <qt_ci_bot@qt-project.org>
Reviewed-by: Liang Qi <liang.qi@qt.io>
Reviewed-by: MÃ¥rten Nordheim <marten.nordheim@qt.io>
Diffstat (limited to 'src/plugins/platforms/windows/qwindowsservices.cpp')
-rw-r--r-- | src/plugins/platforms/windows/qwindowsservices.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/plugins/platforms/windows/qwindowsservices.cpp b/src/plugins/platforms/windows/qwindowsservices.cpp index 491ae8bbc8..89f93fd161 100644 --- a/src/plugins/platforms/windows/qwindowsservices.cpp +++ b/src/plugins/platforms/windows/qwindowsservices.cpp @@ -155,14 +155,14 @@ static inline bool launchMail(const QUrl &url) return false; } // Fix mail launch if no param is expected in this command. - if (command.indexOf(QStringLiteral("%1")) < 0) { + if (command.indexOf("%1"_L1) < 0) { qWarning() << "The mail command lacks the '%1' parameter."; return false; } //Make sure the path for the process is in quotes const QChar doubleQuote = u'"'; if (!command.startsWith(doubleQuote)) { - const int exeIndex = command.indexOf(QStringLiteral(".exe "), 0, Qt::CaseInsensitive); + const int exeIndex = command.indexOf(".exe "_L1, 0, Qt::CaseInsensitive); if (exeIndex != -1) { command.insert(exeIndex + 4, doubleQuote); command.prepend(doubleQuote); |