aboutsummaryrefslogtreecommitdiff
path: root/src/core/kconfigwatcher.cpp
diff options
context:
space:
mode:
authorAlbert Astals Cid <aacid@kde.org>2019-09-30 21:31:24 +0200
committerAlbert Astals Cid <aacid@kde.org>2019-09-30 21:41:08 +0200
commit33bcefa50dcf925f2e960957ab8e3edfd9c67338 (patch)
tree97a0876efc40e419307b0b0a877c0bc9486e50d4 /src/core/kconfigwatcher.cpp
parentc34e457bf9506ca068491eda41467013b180e544 (diff)
downloadkconfig-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.cpp2
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) {