diff --git a/src/core/kconfigwatcher.h b/src/core/kconfigwatcher.h --- a/src/core/kconfigwatcher.h +++ b/src/core/kconfigwatcher.h @@ -49,6 +49,8 @@ */ static Ptr create(const KSharedConfig::Ptr &config); + ~KConfigWatcher() override; + Q_SIGNALS: /** * Emitted when a config group has changed @@ -65,7 +67,7 @@ private: KConfigWatcher(const KSharedConfig::Ptr &config); Q_DISABLE_COPY(KConfigWatcher) - KConfigWatcherPrivate *const d; + const QScopedPointer d; }; #endif diff --git a/src/core/kconfigwatcher.cpp b/src/core/kconfigwatcher.cpp --- a/src/core/kconfigwatcher.cpp +++ b/src/core/kconfigwatcher.cpp @@ -90,6 +90,8 @@ #endif } +KConfigWatcher::~KConfigWatcher() = default; + void KConfigWatcher::onConfigChangeNotification(const QHash &changes) { //should we ever need it we can determine the file changed with QDbusContext::message().path(), but it doesn't seem too useful