From 9cd5b257459a6b4c5d5d4d1026df85f0ecbe5a93 Mon Sep 17 00:00:00 2001 From: davc0n Date: Sun, 4 May 2025 23:39:00 +0200 Subject: protocols: refactor class member vars (u-z) (#10282) * protocols: refactor class member vars (u-z) * protocols: fix clang format --- src/protocols/XXColorManagement.hpp | 58 ++++++++++++++++++------------------- 1 file changed, 29 insertions(+), 29 deletions(-) (limited to 'src/protocols/XXColorManagement.hpp') diff --git a/src/protocols/XXColorManagement.hpp b/src/protocols/XXColorManagement.hpp index 96e99752..0407730a 100644 --- a/src/protocols/XXColorManagement.hpp +++ b/src/protocols/XXColorManagement.hpp @@ -20,7 +20,7 @@ class CXXColorManager { bool good(); private: - SP resource; + SP m_resource; }; class CXXColorManagementOutput { @@ -30,12 +30,12 @@ class CXXColorManagementOutput { bool good(); wl_client* client(); - WP self; - WP imageDescription; + WP m_self; + WP m_imageDescription; private: - SP resource; - wl_client* pClient = nullptr; + SP m_resource; + wl_client* m_client = nullptr; friend class CXXColorManagementProtocol; friend class CXXColorManagementImageDescription; @@ -49,8 +49,8 @@ class CXXColorManagementSurface { bool good(); wl_client* client(); - WP self; - WP surface; + WP m_self; + WP m_surface; const NColorManagement::SImageDescription& imageDescription(); bool hasImageDescription(); @@ -60,8 +60,8 @@ class CXXColorManagementSurface { bool needsHdrMetadataUpdate(); private: - SP resource; - wl_client* pClient = nullptr; + SP m_resource; + wl_client* m_client = nullptr; NColorManagement::SImageDescription m_imageDescription; bool m_hasImageDescription = false; bool m_needsNewMetadata = false; @@ -77,12 +77,12 @@ class CXXColorManagementFeedbackSurface { bool good(); wl_client* client(); - WP self; - WP surface; + WP m_self; + WP m_surface; private: - SP resource; - wl_client* pClient = nullptr; + SP m_resource; + wl_client* m_client = nullptr; WP m_currentPreferred; @@ -96,9 +96,9 @@ class CXXColorManagementParametricCreator { bool good(); wl_client* client(); - WP self; + WP m_self; - NColorManagement::SImageDescription settings; + NColorManagement::SImageDescription m_settings; private: enum eValuesSet : uint32_t { // NOLINT @@ -112,9 +112,9 @@ class CXXColorManagementParametricCreator { PC_FALL = (1 << 7), }; - SP resource; - wl_client* pClient = nullptr; - uint32_t valuesSet = 0; // enum eValuesSet + SP m_resource; + wl_client* m_client = nullptr; + uint32_t m_valuesSet = 0; // enum eValuesSet }; class CXXColorManagementImageDescription { @@ -125,13 +125,13 @@ class CXXColorManagementImageDescription { 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 CXXColorManagementOutput; @@ -146,8 +146,8 @@ class CXXColorManagementImageDescriptionInfo { private: SP m_resource; - wl_client* pClient = nullptr; - NColorManagement::SImageDescription settings; + wl_client* m_client = nullptr; + NColorManagement::SImageDescription m_settings; }; class CXXColorManagementProtocol : public IWaylandProtocol { @@ -166,12 +166,12 @@ class CXXColorManagementProtocol : public IWaylandProtocol { void destroyResource(CXXColorManagementParametricCreator* resource); void destroyResource(CXXColorManagementImageDescription* resource); - std::vector> m_vManagers; - std::vector> m_vOutputs; - std::vector> m_vSurfaces; - std::vector> m_vFeedbackSurfaces; - 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_parametricCreators; + std::vector> m_imageDescriptions; friend class CXXColorManager; friend class CXXColorManagementOutput; -- cgit v1.2.3