From 98b65bb447cd09f5947a3fa6bdf6b733d748ec77 Mon Sep 17 00:00:00 2001 From: Vlad Zahorodnii Date: Wed, 16 Nov 2022 00:37:27 +0200 Subject: [PATCH] Port a usage of QScopedPointer to std::unique_ptr --- src/wayland/lockscreen_overlay_v1_interface.cpp | 2 +- src/wayland/lockscreen_overlay_v1_interface.h | 3 ++- 2 files changed, 3 insertions(+), 2 deletions(-) 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; }; }