aboutsummaryrefslogtreecommitdiff
path: root/src/core/kconfigwatcher.cpp
diff options
context:
space:
mode:
authorFriedrich W. H. Kossebau <kossebau@kde.org>2019-08-24 09:07:32 +0200
committerFriedrich W. H. Kossebau <kossebau@kde.org>2019-08-24 09:07:32 +0200
commita79ddf8dd380d115450c0d2f8a972920682eeb0c (patch)
tree191cc1b7567ebe722f20e9f2ab51b833470f4686 /src/core/kconfigwatcher.cpp
parentdd13427a7166621f9ce4d11867d3e7e5ecffaccb (diff)
downloadkconfig-a79ddf8dd380d115450c0d2f8a972920682eeb0c.tar.gz
kconfig-a79ddf8dd380d115450c0d2f8a972920682eeb0c.tar.bz2
String code optimization: use QLatin1String/QChar overload for string concat
GIT_SILENT
Diffstat (limited to 'src/core/kconfigwatcher.cpp')
-rw-r--r--src/core/kconfigwatcher.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/core/kconfigwatcher.cpp b/src/core/kconfigwatcher.cpp
index c9c500aa..1aec1211 100644
--- a/src/core/kconfigwatcher.cpp
+++ b/src/core/kconfigwatcher.cpp
@@ -69,9 +69,9 @@ KConfigWatcher::KConfigWatcher(const KSharedConfig::Ptr &config):
d->m_config = config;
QStringList watchedPaths;
- watchedPaths <<QStringLiteral("/") + d->m_config->name();
+ watchedPaths << QLatin1Char('/') + d->m_config->name();
for (const QString file: d->m_config->additionalConfigSources()) {
- watchedPaths << QStringLiteral("/") + file;
+ watchedPaths << QLatin1Char('/') + file;
}
if (d->m_config->openFlags() & KConfig::IncludeGlobals) {
watchedPaths << QStringLiteral("/kdeglobals");