diff options
author | Friedrich W. H. Kossebau <kossebau@kde.org> | 2019-08-24 08:47:55 +0200 |
---|---|---|
committer | Friedrich W. H. Kossebau <kossebau@kde.org> | 2019-08-24 08:47:55 +0200 |
commit | 77ac0feb97f4335b33035bbe88722e01e013a832 (patch) | |
tree | 7a93d36f1cdbbed865f01eb47a00fe761c1eb471 /src/core | |
parent | b9cf875e2e7de38b4fb3751346330ce909f6c44c (diff) | |
download | kconfig-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.cpp | 2 |
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(';'); } |