autotests: Make cursor-shape-device-v1 factory function return a std::unique_ptr
This commit is contained in:
parent
46f3c8509c
commit
4d659998d4
2 changed files with 3 additions and 3 deletions
|
@ -712,7 +712,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);
|
||||
std::unique_ptr<AutoHideScreenEdgeV1> createAutoHideScreenEdgeV1(KWayland::Client::Surface *surface, uint32_t border);
|
||||
CursorShapeDeviceV1 *createCursorShapeDeviceV1(KWayland::Client::Pointer *pointer);
|
||||
std::unique_ptr<CursorShapeDeviceV1> createCursorShapeDeviceV1(KWayland::Client::Pointer *pointer);
|
||||
|
||||
/**
|
||||
* Creates a shared memory buffer of @p size in @p color and attaches it to the @p surface.
|
||||
|
|
|
@ -1069,7 +1069,7 @@ std::unique_ptr<AutoHideScreenEdgeV1> createAutoHideScreenEdgeV1(KWayland::Clien
|
|||
return std::make_unique<AutoHideScreenEdgeV1>(manager, surface, border);
|
||||
}
|
||||
|
||||
CursorShapeDeviceV1 *createCursorShapeDeviceV1(KWayland::Client::Pointer *pointer)
|
||||
std::unique_ptr<CursorShapeDeviceV1> createCursorShapeDeviceV1(KWayland::Client::Pointer *pointer)
|
||||
{
|
||||
CursorShapeManagerV1 *manager = s_waylandConnection.cursorShapeManagerV1;
|
||||
if (!manager) {
|
||||
|
@ -1077,7 +1077,7 @@ CursorShapeDeviceV1 *createCursorShapeDeviceV1(KWayland::Client::Pointer *pointe
|
|||
return nullptr;
|
||||
}
|
||||
|
||||
return new CursorShapeDeviceV1(manager, pointer);
|
||||
return std::make_unique<CursorShapeDeviceV1>(manager, pointer);
|
||||
}
|
||||
|
||||
bool waitForWindowClosed(Window *window)
|
||||
|
|
Loading…
Reference in a new issue