autotests: Make auto-hide-screen-edge-v1 factory function return a std::unique_ptr
This commit is contained in:
parent
a887b737ef
commit
46f3c8509c
2 changed files with 3 additions and 3 deletions
|
@ -711,7 +711,7 @@ std::unique_ptr<XdgPopup> createXdgPopupSurface(KWayland::Client::Surface *surfa
|
|||
|
||||
std::unique_ptr<XdgToplevelDecorationV1> createXdgToplevelDecorationV1(XdgToplevel *toplevel);
|
||||
std::unique_ptr<IdleInhibitorV1> createIdleInhibitorV1(KWayland::Client::Surface *surface);
|
||||
AutoHideScreenEdgeV1 *createAutoHideScreenEdgeV1(KWayland::Client::Surface *surface, uint32_t border);
|
||||
std::unique_ptr<AutoHideScreenEdgeV1> createAutoHideScreenEdgeV1(KWayland::Client::Surface *surface, uint32_t border);
|
||||
CursorShapeDeviceV1 *createCursorShapeDeviceV1(KWayland::Client::Pointer *pointer);
|
||||
|
||||
/**
|
||||
|
|
|
@ -1058,7 +1058,7 @@ std::unique_ptr<IdleInhibitorV1> createIdleInhibitorV1(KWayland::Client::Surface
|
|||
return std::make_unique<IdleInhibitorV1>(manager, surface);
|
||||
}
|
||||
|
||||
AutoHideScreenEdgeV1 *createAutoHideScreenEdgeV1(KWayland::Client::Surface *surface, uint32_t border)
|
||||
std::unique_ptr<AutoHideScreenEdgeV1> createAutoHideScreenEdgeV1(KWayland::Client::Surface *surface, uint32_t border)
|
||||
{
|
||||
ScreenEdgeManagerV1 *manager = s_waylandConnection.screenEdgeManagerV1;
|
||||
if (!manager) {
|
||||
|
@ -1066,7 +1066,7 @@ AutoHideScreenEdgeV1 *createAutoHideScreenEdgeV1(KWayland::Client::Surface *surf
|
|||
return nullptr;
|
||||
}
|
||||
|
||||
return new AutoHideScreenEdgeV1(manager, surface, border);
|
||||
return std::make_unique<AutoHideScreenEdgeV1>(manager, surface, border);
|
||||
}
|
||||
|
||||
CursorShapeDeviceV1 *createCursorShapeDeviceV1(KWayland::Client::Pointer *pointer)
|
||||
|
|
Loading…
Reference in a new issue