summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorGiuseppe D'Angelo <giuseppe.dangelo@kdab.com>2019-06-11 19:42:25 +0200
committerGiuseppe D'Angelo <giuseppe.dangelo@kdab.com>2019-06-11 19:42:25 +0200
commit6b98a4915042a97058d51257d51befed9a364c86 (patch)
tree1efd3a6e2a869a96a5363f75009adeea0adcb3f9
parent95e34a568a88cb101b8ec8a5612c588b24830202 (diff)
downloadqttools-6b98a4915042a97058d51257d51befed9a364c86.tar.gz
Port from QLatin1Literal to QLatin1String
QLatin1Literal is an undocumented and deprecated typedef for QLatin1String, just use the original. Change-Id: I8fb7e75deeca45f154a4a9b27e8dd3eea21d8df5 Reviewed-by: hjk <hjk@qt.io>
-rw-r--r--src/linguist/lupdate/main.cpp2
-rw-r--r--src/winrtrunner/main.cpp2
2 files changed, 2 insertions, 2 deletions
diff --git a/src/linguist/lupdate/main.cpp b/src/linguist/lupdate/main.cpp
index d74f213cc..d20b4b4df 100644
--- a/src/linguist/lupdate/main.cpp
+++ b/src/linguist/lupdate/main.cpp
@@ -853,7 +853,7 @@ int main(int argc, char **argv)
while (!lstFile.atEnd()) {
QString lineContent = QString::fromLocal8Bit(lstFile.readLine().trimmed());
- if (lineContent.startsWith(QLatin1Literal("-I"))) {
+ if (lineContent.startsWith(QLatin1String("-I"))) {
if (lineContent.length() == 2) {
printErr(LU::tr("The -I option should be followed by a path.\n"));
return 1;
diff --git a/src/winrtrunner/main.cpp b/src/winrtrunner/main.cpp
index bf4e8fabf..6a738b098 100644
--- a/src/winrtrunner/main.cpp
+++ b/src/winrtrunner/main.cpp
@@ -96,7 +96,7 @@ int main(int argc, char *argv[])
"The package is installed if it is not already "
"installed. Pass --install to force "
"reinstallation."),
- QLatin1Literal("debugger"));
+ QLatin1String("debugger"));
parser.addOption(debugOption);
QCommandLineOption debuggerArgumentsOption(QStringLiteral("debugger-arguments"),