summaryrefslogtreecommitdiffstats
path: root/src/tools/androidtestrunner/main.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/tools/androidtestrunner/main.cpp')
-rw-r--r--src/tools/androidtestrunner/main.cpp16
1 files changed, 8 insertions, 8 deletions
diff --git a/src/tools/androidtestrunner/main.cpp b/src/tools/androidtestrunner/main.cpp
index dbad68ffa37..2f13f911e2a 100644
--- a/src/tools/androidtestrunner/main.cpp
+++ b/src/tools/androidtestrunner/main.cpp
@@ -211,9 +211,9 @@ static QString shellQuoteUnix(const QString &arg)
QString ret(arg);
if (hasSpecialChars(ret, iqm)) {
- ret.replace(QLatin1Char('\''), QStringLiteral("'\\''"));
- ret.prepend(QLatin1Char('\''));
- ret.append(QLatin1Char('\''));
+ ret.replace(u'\'', QStringLiteral("'\\''"));
+ ret.prepend(u'\'');
+ ret.append(u'\'');
}
return ret;
}
@@ -241,18 +241,18 @@ static QString shellQuoteWin(const QString &arg)
// The argument must not end with a \ since this would be interpreted
// as escaping the quote -- rather put the \ behind the quote: e.g.
// rather use "foo"\ than "foo\"
- int i = ret.length();
- while (i > 0 && ret.at(i - 1) == QLatin1Char('\\'))
+ qsizetype i = ret.length();
+ while (i > 0 && ret.at(i - 1) == u'\\')
--i;
- ret.insert(i, QLatin1Char('"'));
- ret.prepend(QLatin1Char('"'));
+ ret.insert(i, u'"');
+ ret.prepend(u'"');
}
return ret;
}
static QString shellQuote(const QString &arg)
{
- if (QDir::separator() == QLatin1Char('\\'))
+ if (QDir::separator() == u'\\')
return shellQuoteWin(arg);
else
return shellQuoteUnix(arg);