Revert "GIT_SILENT: minor qstring optimization"

This reverts commit f96deb39aa.

This was anti-optimization.
QStringLiteral is a QString created at build time. Initialization of
QString with it has no overhead.
QLatin1String is 8 bit C string wrapper which needs run-time conversion
to 16 bit encoding used in QString.
This commit is contained in:
Mariusz Glebocki
2019-12-09 22:15:06 +01:00
committed by Kurt Hindenburg
parent 37f2923b0b
commit 52d2720007
17 changed files with 34 additions and 34 deletions

View File

@@ -141,7 +141,7 @@ QSet<QString> ProcessInfo::commonDirNames()
QString ProcessInfo::formatShortDir(const QString &input) const
{
if(input == QLatin1String("/")) {
if(input == QStringLiteral("/")) {
return QStringLiteral("/");
}