summaryrefslogtreecommitdiffstats
path: root/tools
diff options
context:
space:
mode:
authorLiang Qi <liang.qi@qt.io>2019-06-14 14:49:54 +0200
committerLiang Qi <liang.qi@qt.io>2019-06-14 14:49:54 +0200
commit1639076404e4ece74c103e16356cce6bd9cff9e8 (patch)
tree2eb8447228cc75fbfca2781adbaf91996fe76992 /tools
parentdea04056ac0225f6051a974c9d623eabaaa7eee4 (diff)
Port from QLatin1Literal to QLatin1String
QLatin1Literal is an undocumented and deprecated typedef for QLatin1String, just use the original. Just follow qtbase 45373c19243aea335897ba0f371a1dd53ae8f079. Change-Id: I03c144f405e11b77460f7a8e5eff089952ecc64b Reviewed-by: Simon Hausmann <simon.hausmann@qt.io>
Diffstat (limited to 'tools')
-rw-r--r--tools/repc/main.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/tools/repc/main.cpp b/tools/repc/main.cpp
index 41adee2..9aaffca 100644
--- a/tools/repc/main.cpp
+++ b/tools/repc/main.cpp
@@ -150,7 +150,7 @@ int main(int argc, char **argv)
outputFile = files.last();
if (!(mode & (OutRep | OutSource | OutReplica))) {
// try to figure out the Out mode from file extension
- if (outputFile.endsWith(QLatin1Literal(".rep")))
+ if (outputFile.endsWith(QLatin1String(".rep")))
mode |= OutRep;
}
Q_FALLTHROUGH();
@@ -158,7 +158,7 @@ int main(int argc, char **argv)
inputFile = files.first();
if (!(mode & (InRep | InSrc))) {
// try to figure out the In mode from file extension
- if (inputFile.endsWith(QLatin1Literal(".rep")))
+ if (inputFile.endsWith(QLatin1String(".rep")))
mode |= InRep;
else
mode |= InSrc;