diff options
author | Albert Astals Cid <aacid@kde.org> | 2019-09-30 21:31:24 +0200 |
---|---|---|
committer | Albert Astals Cid <aacid@kde.org> | 2019-09-30 21:41:08 +0200 |
commit | 33bcefa50dcf925f2e960957ab8e3edfd9c67338 (patch) | |
tree | 97a0876efc40e419307b0b0a877c0bc9486e50d4 /src/core/kconfigwatcher.cpp | |
parent | c34e457bf9506ca068491eda41467013b180e544 (diff) | |
download | kconfig-33bcefa50dcf925f2e960957ab8e3edfd9c67338.tar.gz kconfig-33bcefa50dcf925f2e960957ab8e3edfd9c67338.tar.bz2 |
Small performance enhacements
Summary: suggested by clang-tidy
Reviewers: davidedmundson
Reviewed By: davidedmundson
Subscribers: kde-frameworks-devel
Tags: #frameworks
Differential Revision: https://phabricator.kde.org/D24312
Diffstat (limited to 'src/core/kconfigwatcher.cpp')
-rw-r--r-- | src/core/kconfigwatcher.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/core/kconfigwatcher.cpp b/src/core/kconfigwatcher.cpp index 1aec1211..4d4d1355 100644 --- a/src/core/kconfigwatcher.cpp +++ b/src/core/kconfigwatcher.cpp @@ -70,7 +70,7 @@ KConfigWatcher::KConfigWatcher(const KSharedConfig::Ptr &config): QStringList watchedPaths; watchedPaths << QLatin1Char('/') + d->m_config->name(); - for (const QString file: d->m_config->additionalConfigSources()) { + for (const QString &file: d->m_config->additionalConfigSources()) { watchedPaths << QLatin1Char('/') + file; } if (d->m_config->openFlags() & KConfig::IncludeGlobals) { |