From b5433bb75324a95dd27eb5492141565466c2cdd6 Mon Sep 17 00:00:00 2001 From: Tom Englund Date: Thu, 10 Jul 2025 13:11:07 +0200 Subject: singlepixel: move to unique ptrs less refcounting, move by rvalue. --- src/protocols/SinglePixel.hpp | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) (limited to 'src/protocols/SinglePixel.hpp') diff --git a/src/protocols/SinglePixel.hpp b/src/protocols/SinglePixel.hpp index 4f613de8..f8bbfba9 100644 --- a/src/protocols/SinglePixel.hpp +++ b/src/protocols/SinglePixel.hpp @@ -43,12 +43,12 @@ class CSinglePixelBufferResource { class CSinglePixelBufferManagerResource { public: - CSinglePixelBufferManagerResource(SP resource_); + CSinglePixelBufferManagerResource(UP&& resource_); bool good(); private: - SP m_resource; + UP m_resource; }; class CSinglePixelProtocol : public IWaylandProtocol { @@ -62,8 +62,8 @@ class CSinglePixelProtocol : public IWaylandProtocol { void destroyResource(CSinglePixelBufferResource* resource); // - std::vector> m_managers; - std::vector> m_buffers; + std::vector> m_managers; + std::vector> m_buffers; friend class CSinglePixelBufferManagerResource; friend class CSinglePixelBufferResource; -- cgit v1.2.3