diff --git a/src/plasmaquick/configview.cpp b/src/plasmaquick/configview.cpp index b410e9593..ff437531b 100644 --- a/src/plasmaquick/configview.cpp +++ b/src/plasmaquick/configview.cpp @@ -53,7 +53,7 @@ class ConfigViewPrivate { public: ConfigViewPrivate(Plasma::Applet *appl, ConfigView *view); - ~ConfigViewPrivate(); + ~ConfigViewPrivate() = default; void init(); diff --git a/src/plasmaquick/configview.h b/src/plasmaquick/configview.h index 52dea11c8..d559da739 100644 --- a/src/plasmaquick/configview.h +++ b/src/plasmaquick/configview.h @@ -21,6 +21,7 @@ #define CONFIGVIEW_H #include +#include #include @@ -81,7 +82,7 @@ protected: void resizeEvent(QResizeEvent *re) override; private: - ConfigViewPrivate *const d; + QScopedPointer const d; Q_PRIVATE_SLOT(d, void updateMinimumWidth()) Q_PRIVATE_SLOT(d, void updateMinimumHeight()) diff --git a/src/plasmaquick/dialog.h b/src/plasmaquick/dialog.h index 727976bb4..ff432f81e 100644 --- a/src/plasmaquick/dialog.h +++ b/src/plasmaquick/dialog.h @@ -24,6 +24,7 @@ #include #include #include +#include #include #include @@ -241,7 +242,7 @@ protected: private: friend class DialogPrivate; - DialogPrivate *const d; + const QScopedPointer d; Q_PRIVATE_SLOT(d, void updateInputShape()) Q_PRIVATE_SLOT(d, void updateTheme())