diff options
author | Ahmad Samir <a.samirh78@gmail.com> | 2021-02-01 01:03:40 +0200 |
---|---|---|
committer | Ahmad Samir <a.samirh78@gmail.com> | 2021-02-06 16:28:53 +0200 |
commit | 081f559031fed7cde755e006b226cf06f33bd0f8 (patch) | |
tree | f6334b19630d6d9df9074b493c5eaa3c7914954e /src/core/kconfigwatcher.cpp | |
parent | 5d0dac047384e1f46e2de57f9b9ebf4f6fde0e26 (diff) | |
download | kconfig-081f559031fed7cde755e006b226cf06f33bd0f8.tar.gz kconfig-081f559031fed7cde755e006b226cf06f33bd0f8.tar.bz2 |
General code cleanup
Fix some clazy warnings, and some other minor code optimisations.
NO_CHANGELOG
Diffstat (limited to 'src/core/kconfigwatcher.cpp')
-rw-r--r-- | src/core/kconfigwatcher.cpp | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/src/core/kconfigwatcher.cpp b/src/core/kconfigwatcher.cpp index f63c39c1..c5aa6205 100644 --- a/src/core/kconfigwatcher.cpp +++ b/src/core/kconfigwatcher.cpp @@ -57,7 +57,8 @@ KConfigWatcher::KConfigWatcher(const KSharedConfig::Ptr &config): QStringList watchedPaths; watchedPaths << QLatin1Char('/') + d->m_config->name(); - for (const QString &file: d->m_config->additionalConfigSources()) { + const auto cfgSources = d->m_config->additionalConfigSources(); + for (const QString &file : cfgSources) { watchedPaths << QLatin1Char('/') + file; } if (d->m_config->openFlags() & KConfig::IncludeGlobals) { |