protocols: refactor class member vars (n-t) (#10273)

This commit is contained in:
davc0n 2025-05-04 19:21:36 +02:00 committed by GitHub
parent adbae0f74d
commit 2626f89ea6
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
41 changed files with 1507 additions and 1511 deletions

View file

@ -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;