From dd13427a7166621f9ce4d11867d3e7e5ecffaccb Mon Sep 17 00:00:00 2001 From: "Friedrich W. H. Kossebau" Date: Sat, 24 Aug 2019 08:55:56 +0200 Subject: String code optimization: use QLatin1String overload for == & != GIT_SILENT --- src/core/kconfig.cpp | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'src/core/kconfig.cpp') diff --git a/src/core/kconfig.cpp b/src/core/kconfig.cpp index 9f294209..c45643d2 100644 --- a/src/core/kconfig.cpp +++ b/src/core/kconfig.cpp @@ -202,11 +202,11 @@ QString KConfigPrivate::expandString(const QString &value) if (!pEnv.isEmpty()) { env = QString::fromLocal8Bit(pEnv.constData()); } else { - if (aVarName == QStringLiteral("QT_DATA_HOME")) { + if (aVarName == QLatin1String("QT_DATA_HOME")) { env = QStandardPaths::writableLocation(QStandardPaths::GenericDataLocation); - } else if (aVarName == QStringLiteral("QT_CONFIG_HOME")) { + } else if (aVarName == QLatin1String("QT_CONFIG_HOME")) { env = QStandardPaths::writableLocation(QStandardPaths::GenericConfigLocation); - } else if (aVarName == QStringLiteral("QT_CACHE_HOME")) { + } else if (aVarName == QLatin1String("QT_CACHE_HOME")) { env = QStandardPaths::writableLocation(QStandardPaths::GenericCacheLocation); } } -- cgit v1.2.1