diff options
| author | Friedrich W. H. Kossebau <kossebau@kde.org> | 2019-08-24 08:55:56 +0200 | 
|---|---|---|
| committer | Friedrich W. H. Kossebau <kossebau@kde.org> | 2019-08-24 08:55:56 +0200 | 
| commit | dd13427a7166621f9ce4d11867d3e7e5ecffaccb (patch) | |
| tree | d7c431d6bf1cfdb92b647e7f2ecbdf727566e01c /src/core | |
| parent | 77ac0feb97f4335b33035bbe88722e01e013a832 (diff) | |
| download | kconfig-dd13427a7166621f9ce4d11867d3e7e5ecffaccb.tar.gz kconfig-dd13427a7166621f9ce4d11867d3e7e5ecffaccb.tar.bz2 | |
String code optimization: use QLatin1String overload for == & !=
GIT_SILENT
Diffstat (limited to 'src/core')
| -rw-r--r-- | src/core/kconfig.cpp | 6 | 
1 files changed, 3 insertions, 3 deletions
| 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);                          }                      } | 
