aboutsummaryrefslogtreecommitdiffstats
path: root/tools/qmllint/main.cpp
diff options
context:
space:
mode:
authorSona Kurazyan <sona.kurazyan@qt.io>2022-03-21 10:21:18 +0100
committerSona Kurazyan <sona.kurazyan@qt.io>2022-04-29 09:47:43 +0200
commit2c9c1590e6c9dc59bd786f4b41af32f1994bed2d (patch)
tree7cc1302426732093f1c88c1d7621a95854ade0e2 /tools/qmllint/main.cpp
parentecc87ea07723998dcfa947353e4259ec8d057035 (diff)
Replace uses of deprecated _qs with _s/QStringLiteral
Task-number: QTBUG-101408 Change-Id: Ic925751b73f52d8fa5add5cacc52d6dd6ea2dc27 Reviewed-by: Ulf Hermann <ulf.hermann@qt.io>
Diffstat (limited to 'tools/qmllint/main.cpp')
-rw-r--r--tools/qmllint/main.cpp8
1 files changed, 5 insertions, 3 deletions
diff --git a/tools/qmllint/main.cpp b/tools/qmllint/main.cpp
index f6c29c19b6..04d0e322b8 100644
--- a/tools/qmllint/main.cpp
+++ b/tools/qmllint/main.cpp
@@ -50,6 +50,8 @@
#include <cstdio>
+using namespace Qt::StringLiterals;
+
constexpr int JSON_LOGGING_FORMAT_REVISION = 3;
int main(int argv, char *argc[])
@@ -366,7 +368,7 @@ All warnings can be set to three levels:
continue;
}
- const QString backupFile = filename + u".bak"_qs;
+ const QString backupFile = filename + u".bak"_s;
if (QFile::exists(backupFile) && !QFile::remove(backupFile)) {
if (!silent) {
qWarning().nospace() << "Failed to remove old backup file " << backupFile
@@ -414,8 +416,8 @@ All warnings can be set to three levels:
if (useJson) {
QJsonObject result;
- result[u"revision"_qs] = JSON_LOGGING_FORMAT_REVISION;
- result[u"files"_qs] = jsonFiles;
+ result[u"revision"_s] = JSON_LOGGING_FORMAT_REVISION;
+ result[u"files"_s] = jsonFiles;
QString fileName = parser.value(jsonOption);