From adbae0f74d951e06c575bad3c81a944027dfe413 Mon Sep 17 00:00:00 2001 From: davc0n Date: Sun, 4 May 2025 00:13:29 +0200 Subject: protocols: refactor class member vars (a-m) (#10265) --- src/protocols/ColorManagement.hpp | 56 +++++++++++++++++++-------------------- 1 file changed, 28 insertions(+), 28 deletions(-) (limited to 'src/protocols/ColorManagement.hpp') diff --git a/src/protocols/ColorManagement.hpp b/src/protocols/ColorManagement.hpp index 5a94920d..fc3a8d54 100644 --- a/src/protocols/ColorManagement.hpp +++ b/src/protocols/ColorManagement.hpp @@ -31,12 +31,12 @@ class CColorManagementOutput { bool good(); wl_client* client(); - WP self; - WP imageDescription; + WP m_self; + WP m_imageDescription; private: SP m_resource; - wl_client* pClient = nullptr; + wl_client* m_client = nullptr; WP m_monitor; friend class CColorManagementProtocol; @@ -51,8 +51,8 @@ class CColorManagementSurface { bool good(); wl_client* client(); - WP self; - WP surface; + WP m_self; + WP m_surface; const NColorManagement::SImageDescription& imageDescription(); bool hasImageDescription(); @@ -63,7 +63,7 @@ class CColorManagementSurface { private: SP m_resource; - wl_client* pClient = nullptr; + wl_client* m_client = nullptr; NColorManagement::SImageDescription m_imageDescription; NColorManagement::SImageDescription m_lastImageDescription; bool m_hasImageDescription = false; @@ -81,12 +81,12 @@ class CColorManagementFeedbackSurface { bool good(); wl_client* client(); - WP self; - WP surface; + WP m_self; + WP m_surface; private: SP m_resource; - wl_client* pClient = nullptr; + wl_client* m_client = nullptr; WP m_currentPreferred; @@ -100,13 +100,13 @@ class CColorManagementIccCreator { bool good(); wl_client* client(); - WP self; + WP m_self; - NColorManagement::SImageDescription settings; + NColorManagement::SImageDescription m_settings; private: SP m_resource; - wl_client* pClient = nullptr; + wl_client* m_client = nullptr; }; class CColorManagementParametricCreator { @@ -116,9 +116,9 @@ class CColorManagementParametricCreator { bool good(); wl_client* client(); - WP self; + WP m_self; - NColorManagement::SImageDescription settings; + NColorManagement::SImageDescription m_settings; private: enum eValuesSet : uint32_t { // NOLINT @@ -133,8 +133,8 @@ class CColorManagementParametricCreator { }; SP m_resource; - wl_client* pClient = nullptr; - uint32_t valuesSet = 0; // enum eValuesSet + wl_client* m_client = nullptr; + uint32_t m_valuesSet = 0; // enum eValuesSet }; class CColorManagementImageDescription { @@ -145,13 +145,13 @@ class CColorManagementImageDescription { wl_client* client(); SP resource(); - WP self; + WP m_self; - NColorManagement::SImageDescription settings; + NColorManagement::SImageDescription m_settings; private: SP m_resource; - wl_client* pClient = nullptr; + wl_client* m_client = nullptr; bool m_allowGetInformation = false; friend class CColorManagementOutput; @@ -166,8 +166,8 @@ class CColorManagementImageDescriptionInfo { private: SP m_resource; - wl_client* pClient = nullptr; - NColorManagement::SImageDescription settings; + wl_client* m_client = nullptr; + NColorManagement::SImageDescription m_settings; }; class CColorManagementProtocol : public IWaylandProtocol { @@ -188,13 +188,13 @@ class CColorManagementProtocol : public IWaylandProtocol { void destroyResource(CColorManagementParametricCreator* resource); void destroyResource(CColorManagementImageDescription* resource); - std::vector> m_vManagers; - std::vector> m_vOutputs; - std::vector> m_vSurfaces; - std::vector> m_vFeedbackSurfaces; - std::vector> m_vIccCreators; - std::vector> m_vParametricCreators; - std::vector> m_vImageDescriptions; + std::vector> m_managers; + std::vector> m_outputs; + std::vector> m_surfaces; + std::vector> m_feedbackSurfaces; + std::vector> m_iccCreators; + std::vector> m_parametricCreators; + std::vector> m_imageDescriptions; bool m_debug = false; friend class CColorManager; -- cgit v1.2.3