From 33bcefa50dcf925f2e960957ab8e3edfd9c67338 Mon Sep 17 00:00:00 2001 From: Albert Astals Cid Date: Mon, 30 Sep 2019 21:31:24 +0200 Subject: 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 --- src/core/kconfigwatcher.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/core/kconfigwatcher.cpp') 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) { -- cgit v1.2.1