From a79ddf8dd380d115450c0d2f8a972920682eeb0c Mon Sep 17 00:00:00 2001 From: "Friedrich W. H. Kossebau" Date: Sat, 24 Aug 2019 09:07:32 +0200 Subject: String code optimization: use QLatin1String/QChar overload for string concat GIT_SILENT --- src/core/kconfigwatcher.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'src/core/kconfigwatcher.cpp') 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 <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"); -- cgit v1.2.1