diff options
| author | davc0n <dconti.dev@gmail.com> | 2025-05-04 19:21:36 +0200 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2025-05-04 19:21:36 +0200 |
| commit | 2626f89ea6fe0df585df28052bf1fcca2c50fe8e (patch) | |
| tree | 6dd030f42e065e1a927ab907222e1efaf21b0bc1 /src/protocols/SinglePixel.hpp | |
| parent | adbae0f74d951e06c575bad3c81a944027dfe413 (diff) | |
protocols: refactor class member vars (n-t) (#10273)
Diffstat (limited to 'src/protocols/SinglePixel.hpp')
| -rw-r--r-- | src/protocols/SinglePixel.hpp | 18 |
1 files changed, 7 insertions, 11 deletions
diff --git a/src/protocols/SinglePixel.hpp b/src/protocols/SinglePixel.hpp index 478f3e35..4f613de8 100644 --- a/src/protocols/SinglePixel.hpp +++ b/src/protocols/SinglePixel.hpp @@ -20,14 +20,10 @@ class CSinglePixelBuffer : public IHLBuffer { virtual void endDataPtr(); // bool good(); - bool success = false; + bool m_success = false; private: - uint32_t color = 0x00000000; - - struct { - CHyprSignalListener resourceDestroy; - } listeners; + uint32_t m_color = 0x00000000; }; class CSinglePixelBufferResource { @@ -38,11 +34,11 @@ class CSinglePixelBufferResource { bool good(); private: - SP<CSinglePixelBuffer> buffer; + SP<CSinglePixelBuffer> m_buffer; struct { CHyprSignalListener bufferResourceDestroy; - } listeners; + } m_listeners; }; class CSinglePixelBufferManagerResource { @@ -52,7 +48,7 @@ class CSinglePixelBufferManagerResource { bool good(); private: - SP<CWpSinglePixelBufferManagerV1> resource; + SP<CWpSinglePixelBufferManagerV1> m_resource; }; class CSinglePixelProtocol : public IWaylandProtocol { @@ -66,8 +62,8 @@ class CSinglePixelProtocol : public IWaylandProtocol { void destroyResource(CSinglePixelBufferResource* resource); // - std::vector<SP<CSinglePixelBufferManagerResource>> m_vManagers; - std::vector<SP<CSinglePixelBufferResource>> m_vBuffers; + std::vector<SP<CSinglePixelBufferManagerResource>> m_managers; + std::vector<SP<CSinglePixelBufferResource>> m_buffers; friend class CSinglePixelBufferManagerResource; friend class CSinglePixelBufferResource; |
