diff options
author | Friedrich W. H. Kossebau <kossebau@kde.org> | 2019-08-24 09:07:32 +0200 |
---|---|---|
committer | Friedrich W. H. Kossebau <kossebau@kde.org> | 2019-08-24 09:07:32 +0200 |
commit | a79ddf8dd380d115450c0d2f8a972920682eeb0c (patch) | |
tree | 191cc1b7567ebe722f20e9f2ab51b833470f4686 /src/core/kconfigwatcher.cpp | |
parent | dd13427a7166621f9ce4d11867d3e7e5ecffaccb (diff) | |
download | kconfig-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.cpp | 4 |
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"); |