aboutsummaryrefslogtreecommitdiff
path: root/src/core
diff options
context:
space:
mode:
Diffstat (limited to 'src/core')
-rw-r--r--src/core/kconfigwatcher.cpp2
-rw-r--r--src/core/kcoreconfigskeleton.cpp4
2 files changed, 3 insertions, 3 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) {
diff --git a/src/core/kcoreconfigskeleton.cpp b/src/core/kcoreconfigskeleton.cpp
index 2d8048a2..b3eb0019 100644
--- a/src/core/kcoreconfigskeleton.cpp
+++ b/src/core/kcoreconfigskeleton.cpp
@@ -1009,7 +1009,7 @@ KCoreConfigSkeleton::KCoreConfigSkeleton(KSharedConfig::Ptr pConfig, QObject *pa
d(new KCoreConfigSkeletonPrivate)
{
//qDebug() << "Creating KCoreConfigSkeleton (" << (void *)this << ")";
- d->mConfig = pConfig;
+ d->mConfig = std::move(pConfig);
}
KCoreConfigSkeleton::~KCoreConfigSkeleton()
@@ -1044,7 +1044,7 @@ KSharedConfig::Ptr KCoreConfigSkeleton::sharedConfig() const
void KCoreConfigSkeleton::setSharedConfig(KSharedConfig::Ptr pConfig)
{
- d->mConfig = pConfig;
+ d->mConfig = std::move(pConfig);
}
KConfigSkeletonItem::List KCoreConfigSkeleton::items() const