aboutsummaryrefslogtreecommitdiff
path: root/src/core
diff options
context:
space:
mode:
authorFriedrich W. H. Kossebau <kossebau@kde.org>2019-08-24 08:47:55 +0200
committerFriedrich W. H. Kossebau <kossebau@kde.org>2019-08-24 08:47:55 +0200
commit77ac0feb97f4335b33035bbe88722e01e013a832 (patch)
tree7a93d36f1cdbbed865f01eb47a00fe761c1eb471 /src/core
parentb9cf875e2e7de38b4fb3751346330ce909f6c44c (diff)
downloadkconfig-77ac0feb97f4335b33035bbe88722e01e013a832.tar.gz
kconfig-77ac0feb97f4335b33035bbe88722e01e013a832.tar.bz2
String code optimization: use QLatin1String overload for QString::replace
GIT_SILENT
Diffstat (limited to 'src/core')
-rw-r--r--src/core/kconfiggroup.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/core/kconfiggroup.cpp b/src/core/kconfiggroup.cpp
index c7b8cb67..32dcb458 100644
--- a/src/core/kconfiggroup.cpp
+++ b/src/core/kconfiggroup.cpp
@@ -1110,7 +1110,7 @@ void KConfigGroup::writeXdgListEntry(const char *key, const QStringList &list, W
const QStringList::ConstIterator end = list.constEnd();
for (; it != end; ++it) {
QString val(*it);
- val.replace(QLatin1Char('\\'), QStringLiteral("\\\\")).replace(QLatin1Char(';'), QStringLiteral("\\;"));
+ val.replace(QLatin1Char('\\'), QLatin1String("\\\\")).replace(QLatin1Char(';'), QLatin1String("\\;"));
value += val;
value += QLatin1Char(';');
}