diff --git a/src/wayland/lockscreen_overlay_v1_interface.cpp b/src/wayland/lockscreen_overlay_v1_interface.cpp index 61ad0b1d64..904423b5c3 100644 --- a/src/wayland/lockscreen_overlay_v1_interface.cpp +++ b/src/wayland/lockscreen_overlay_v1_interface.cpp @@ -47,7 +47,7 @@ LockscreenOverlayV1Interface::~LockscreenOverlayV1Interface() = default; LockscreenOverlayV1Interface::LockscreenOverlayV1Interface(Display *display, QObject *parent) : QObject(parent) - , d(new LockscreenOverlayV1InterfacePrivate(display, this)) + , d(std::make_unique(display, this)) { } diff --git a/src/wayland/lockscreen_overlay_v1_interface.h b/src/wayland/lockscreen_overlay_v1_interface.h index 7dd3662464..25c25c59dd 100644 --- a/src/wayland/lockscreen_overlay_v1_interface.h +++ b/src/wayland/lockscreen_overlay_v1_interface.h @@ -11,6 +11,7 @@ #include #include #include +#include #include struct wl_resource; @@ -37,7 +38,7 @@ Q_SIGNALS: private: friend class LockscreenOverlayV1InterfacePrivate; LockscreenOverlayV1Interface(LockscreenOverlayV1Interface *parent); - QScopedPointer d; + std::unique_ptr d; }; }