From 1a0ed00f74f7cfcc3b7c4fd7e3bf0073c4973267 Mon Sep 17 00:00:00 2001 From: Tom Englund Date: Mon, 18 Aug 2025 17:42:19 +0200 Subject: protocols/wayland: use UP and rvalue refs for callbacks (#11471) use UP and rvalue refs in CWLCallbackResource and m_callbacks. --- src/protocols/core/Compositor.hpp | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'src/protocols/core/Compositor.hpp') diff --git a/src/protocols/core/Compositor.hpp b/src/protocols/core/Compositor.hpp index fd91d8d9..5a69deb6 100644 --- a/src/protocols/core/Compositor.hpp +++ b/src/protocols/core/Compositor.hpp @@ -35,13 +35,13 @@ class CContentType; class CWLCallbackResource { public: - CWLCallbackResource(SP resource_); + CWLCallbackResource(UP&& resource_); bool good(); void send(const Time::steady_tp& now); private: - SP m_resource; + UP m_resource; }; class CWLRegionResource { @@ -95,7 +95,7 @@ class CWLSurfaceResource { SSurfaceState m_pending; std::queue> m_pendingStates; - std::vector> m_callbacks; + std::vector> m_callbacks; WP m_self; WP m_hlSurface; std::vector m_enteredOutputs; -- cgit v1.2.3