diff options
author | Noel Grandin <noel.grandin@collabora.co.uk> | 2019-09-25 13:31:06 +0200 |
---|---|---|
committer | Noel Grandin <noel.grandin@collabora.co.uk> | 2019-09-26 03:04:45 +0200 |
commit | 4e67474a6e4dbfeff5316dcf08b44cfead148609 (patch) | |
tree | 630190f52de6572a46bb13b9ae6ae5b5709e64a7 /lotuswordpro/inc/lwpcolor.hxx | |
parent | 3b13f813da6ad3bd3e4f9dc24b7deb84ea557063 (diff) |
loplugin:constmethod in framework..lotuswordpro
Change-Id: I14a3855a75cf081d86c2a404966db38c617c0256
Reviewed-on: https://gerrit.libreoffice.org/79541
Tested-by: Jenkins
Reviewed-by: Noel Grandin <noel.grandin@collabora.co.uk>
Diffstat (limited to 'lotuswordpro/inc/lwpcolor.hxx')
-rw-r--r-- | lotuswordpro/inc/lwpcolor.hxx | 20 |
1 files changed, 10 insertions, 10 deletions
diff --git a/lotuswordpro/inc/lwpcolor.hxx b/lotuswordpro/inc/lwpcolor.hxx index d6d3b02a63b7..3ca8698800ad 100644 --- a/lotuswordpro/inc/lwpcolor.hxx +++ b/lotuswordpro/inc/lwpcolor.hxx @@ -73,12 +73,12 @@ public: LwpColor():m_nRed(0), m_nGreen(0), m_nBlue(0), m_nExtra(0){} public: void Read(LwpObjectStream *pStrm); - sal_uInt16 GetRed(); - sal_uInt16 GetGreen(); - sal_uInt16 GetBlue(); - bool IsValidColor(); + sal_uInt16 GetRed() const; + sal_uInt16 GetGreen() const; + sal_uInt16 GetBlue() const; + bool IsValidColor() const; sal_uInt32 To24Color(); - bool IsTransparent(); + bool IsTransparent() const; private: sal_uInt16 m_nRed; // When extra is AGLRGB_INDEX, m_nRed holds the sal_uInt16 m_nGreen; // hi 16 bits and m_nGreen holds the lo 16 bits of @@ -99,23 +99,23 @@ private: AGLRGB_TRANSPARENT = 100 }; }; -inline sal_uInt16 LwpColor::GetRed() +inline sal_uInt16 LwpColor::GetRed() const { return m_nRed; } -inline sal_uInt16 LwpColor::GetGreen() +inline sal_uInt16 LwpColor::GetGreen() const { return m_nGreen; } -inline sal_uInt16 LwpColor::GetBlue() +inline sal_uInt16 LwpColor::GetBlue() const { return m_nBlue; } -inline bool LwpColor::IsValidColor() +inline bool LwpColor::IsValidColor() const { return ((m_nExtra!=AGLRGB_INVALID) && (m_nExtra!=AGLRGB_TRANSPARENT)); } -inline bool LwpColor::IsTransparent() +inline bool LwpColor::IsTransparent() const { return (m_nExtra==AGLRGB_TRANSPARENT); } |