diff options
author | Noel Grandin <noel.grandin@collabora.co.uk> | 2017-10-27 09:03:20 +0200 |
---|---|---|
committer | Noel Grandin <noel.grandin@collabora.co.uk> | 2017-10-30 13:21:13 +0100 |
commit | db378d64a9ca8675066fda31f3bd77dc37c52398 (patch) | |
tree | dc6c2c85b4996cff913c9f590eda19712bf9e309 /vcl/inc | |
parent | 9ee60319c675087486907707c8a2b18b5c9dc9fc (diff) |
loplugin:constmethod in vcl and stoc
Change-Id: I7c02eecc16ca7cf89d9f7021116b0226885dbf06
Reviewed-on: https://gerrit.libreoffice.org/44044
Tested-by: Jenkins <ci@libreoffice.org>
Reviewed-by: Noel Grandin <noel.grandin@collabora.co.uk>
Diffstat (limited to 'vcl/inc')
-rw-r--r-- | vcl/inc/ControlCacheKey.hxx | 4 | ||||
-rw-r--r-- | vcl/inc/impfontmetricdata.hxx | 70 | ||||
-rw-r--r-- | vcl/inc/salgdi.hxx | 2 | ||||
-rw-r--r-- | vcl/inc/salobj.hxx | 4 |
4 files changed, 40 insertions, 40 deletions
diff --git a/vcl/inc/ControlCacheKey.hxx b/vcl/inc/ControlCacheKey.hxx index 20baa6e3759b..810d6e19f0f7 100644 --- a/vcl/inc/ControlCacheKey.hxx +++ b/vcl/inc/ControlCacheKey.hxx @@ -47,7 +47,7 @@ public: && maSize.Height() == aOther.maSize.Height(); } - bool canCacheControl() + bool canCacheControl() const { switch(mnType) { @@ -76,4 +76,4 @@ public: } }; -#endif // INCLUDED_VCL_INC_CONTROLCACHEKEY_HXX
\ No newline at end of file +#endif // INCLUDED_VCL_INC_CONTROLCACHEKEY_HXX diff --git a/vcl/inc/impfontmetricdata.hxx b/vcl/inc/impfontmetricdata.hxx index c3865ce06018..14ad323b9b77 100644 --- a/vcl/inc/impfontmetricdata.hxx +++ b/vcl/inc/impfontmetricdata.hxx @@ -38,55 +38,55 @@ public: explicit ImplFontMetricData( const FontSelectPattern& ); // font instance attributes from the font request - long GetWidth() { return mnWidth; } - short GetOrientation() { return mnOrientation; } + long GetWidth() const { return mnWidth; } + short GetOrientation() const { return mnOrientation; } void SetWidth(long nWidth) { mnWidth=nWidth; } void SetOrientation(short nOrientation) { mnOrientation=nOrientation; } // font metrics measured for the font instance - long GetAscent() { return mnAscent; } - long GetDescent() { return mnDescent; } - long GetInternalLeading() { return mnIntLeading; } - long GetExternalLeading() { return mnExtLeading; } - int GetSlant() { return mnSlant; } - long GetMinKashida() { return mnMinKashida; } + long GetAscent() const { return mnAscent; } + long GetDescent() const { return mnDescent; } + long GetInternalLeading() const { return mnIntLeading; } + long GetExternalLeading() const { return mnExtLeading; } + int GetSlant() const { return mnSlant; } + long GetMinKashida() const { return mnMinKashida; } void SetSlant(int nSlant) { mnSlant=nSlant; } void SetMinKashida( long nMinKashida ) { mnMinKashida=nMinKashida; } // font attributes queried from the font instance - bool IsFullstopCentered() { return mbFullstopCentered; } - long GetBulletOffset() { return mnBulletOffset; } + bool IsFullstopCentered() const { return mbFullstopCentered; } + long GetBulletOffset() const { return mnBulletOffset; } void SetFullstopCenteredFlag(bool bFullstopCentered) { mbFullstopCentered = bFullstopCentered; } // font metrics that are usually derived from the measurements - long GetUnderlineSize() { return mnUnderlineSize; } - long GetUnderlineOffset() { return mnUnderlineOffset; } - long GetBoldUnderlineSize() { return mnBUnderlineSize; } - long GetBoldUnderlineOffset() { return mnBUnderlineOffset; } - long GetDoubleUnderlineSize() { return mnDUnderlineSize; } - long GetDoubleUnderlineOffset1() { return mnDUnderlineOffset1; } - long GetDoubleUnderlineOffset2() { return mnDUnderlineOffset2; } - long GetWavelineUnderlineSize() { return mnWUnderlineSize; } - long GetWavelineUnderlineOffset() { return mnWUnderlineOffset; } - long GetAboveUnderlineSize() { return mnAboveUnderlineSize; } - long GetAboveUnderlineOffset() { return mnAboveUnderlineOffset; } - long GetAboveBoldUnderlineSize() { return mnAboveBUnderlineSize; } - long GetAboveBoldUnderlineOffset() { return mnAboveBUnderlineOffset; } - long GetAboveDoubleUnderlineSize() { return mnAboveDUnderlineSize; } - long GetAboveDoubleUnderlineOffset1() { return mnAboveDUnderlineOffset1; } - long GetAboveDoubleUnderlineOffset2() { return mnAboveDUnderlineOffset2; } - long GetAboveWavelineUnderlineSize() { return mnAboveWUnderlineSize; } - long GetAboveWavelineUnderlineOffset() { return mnAboveWUnderlineOffset; } - long GetStrikeoutSize() { return mnStrikeoutSize; } - long GetStrikeoutOffset() { return mnStrikeoutOffset; } - long GetBoldStrikeoutSize() { return mnBStrikeoutSize; } - long GetBoldStrikeoutOffset() { return mnBStrikeoutOffset; } - long GetDoubleStrikeoutSize() { return mnDStrikeoutSize; } - long GetDoubleStrikeoutOffset1() { return mnDStrikeoutOffset1; } - long GetDoubleStrikeoutOffset2() { return mnDStrikeoutOffset2; } + long GetUnderlineSize() const { return mnUnderlineSize; } + long GetUnderlineOffset() const { return mnUnderlineOffset; } + long GetBoldUnderlineSize() const { return mnBUnderlineSize; } + long GetBoldUnderlineOffset() const { return mnBUnderlineOffset; } + long GetDoubleUnderlineSize() const { return mnDUnderlineSize; } + long GetDoubleUnderlineOffset1() const { return mnDUnderlineOffset1; } + long GetDoubleUnderlineOffset2() const { return mnDUnderlineOffset2; } + long GetWavelineUnderlineSize() const { return mnWUnderlineSize; } + long GetWavelineUnderlineOffset() const { return mnWUnderlineOffset; } + long GetAboveUnderlineSize() const { return mnAboveUnderlineSize; } + long GetAboveUnderlineOffset() const { return mnAboveUnderlineOffset; } + long GetAboveBoldUnderlineSize() const { return mnAboveBUnderlineSize; } + long GetAboveBoldUnderlineOffset() const { return mnAboveBUnderlineOffset; } + long GetAboveDoubleUnderlineSize() const { return mnAboveDUnderlineSize; } + long GetAboveDoubleUnderlineOffset1() const { return mnAboveDUnderlineOffset1; } + long GetAboveDoubleUnderlineOffset2() const { return mnAboveDUnderlineOffset2; } + long GetAboveWavelineUnderlineSize() const { return mnAboveWUnderlineSize; } + long GetAboveWavelineUnderlineOffset() const { return mnAboveWUnderlineOffset; } + long GetStrikeoutSize() const { return mnStrikeoutSize; } + long GetStrikeoutOffset() const { return mnStrikeoutOffset; } + long GetBoldStrikeoutSize() const { return mnBStrikeoutSize; } + long GetBoldStrikeoutOffset() const { return mnBStrikeoutOffset; } + long GetDoubleStrikeoutSize() const { return mnDStrikeoutSize; } + long GetDoubleStrikeoutOffset1() const { return mnDStrikeoutOffset1; } + long GetDoubleStrikeoutOffset2() const { return mnDStrikeoutOffset2; } void ImplInitTextLineSize( const OutputDevice* pDev ); void ImplInitAboveTextLineSize(); diff --git a/vcl/inc/salgdi.hxx b/vcl/inc/salgdi.hxx index 99249e7ba2f3..61f8bb3539cc 100644 --- a/vcl/inc/salgdi.hxx +++ b/vcl/inc/salgdi.hxx @@ -198,7 +198,7 @@ public: virtual bool supportsOperation( OutDevSupportType ) const = 0; // mirroring specifics - SalLayoutFlags GetLayout() { return m_nLayout; } + SalLayoutFlags GetLayout() const { return m_nLayout; } void SetLayout( SalLayoutFlags aLayout ) { m_nLayout = aLayout;} void mirror( long& nX, const OutputDevice *pOutDev ) const; diff --git a/vcl/inc/salobj.hxx b/vcl/inc/salobj.hxx index 07f1843fadcc..e4c8b918c09b 100644 --- a/vcl/inc/salobj.hxx +++ b/vcl/inc/salobj.hxx @@ -59,12 +59,12 @@ public: void SetMouseTransparent( bool bMouseTransparent ) { m_bMouseTransparent = bMouseTransparent; } - bool IsMouseTransparent() + bool IsMouseTransparent() const { return m_bMouseTransparent; } void EnableEraseBackground( bool bEnable ) { m_bEraseBackground = bEnable; } - bool IsEraseBackgroundEnabled() + bool IsEraseBackgroundEnabled() const { return m_bEraseBackground; } }; |