diff options
author | Noel Grandin <noel.grandin@collabora.co.uk> | 2019-08-22 13:41:08 +0200 |
---|---|---|
committer | Noel Grandin <noel.grandin@collabora.co.uk> | 2019-08-22 15:46:16 +0200 |
commit | 8a82dca5bd43080f0f5597b915d1433b1c0f141a (patch) | |
tree | 5b2ca3700491d7869be1d449ca2174c27e0a1304 | |
parent | 0ec0ba24f0f28deef7993e430682bf4a5d9f3271 (diff) |
loplugin:constmethod in toolkit
Change-Id: Id80ee487d7083da5c1f1c4d012d6339700471204
Reviewed-on: https://gerrit.libreoffice.org/77952
Tested-by: Jenkins
Reviewed-by: Noel Grandin <noel.grandin@collabora.co.uk>
-rw-r--r-- | include/toolkit/awt/vclxwindows.hxx | 4 | ||||
-rw-r--r-- | toolkit/source/awt/vclxwindow.cxx | 4 | ||||
-rw-r--r-- | toolkit/source/awt/vclxwindows.cxx | 4 |
3 files changed, 6 insertions, 6 deletions
diff --git a/include/toolkit/awt/vclxwindows.hxx b/include/toolkit/awt/vclxwindows.hxx index 202d5974c8f9..eba13e505a41 100644 --- a/include/toolkit/awt/vclxwindows.hxx +++ b/include/toolkit/awt/vclxwindows.hxx @@ -608,7 +608,7 @@ public: /// @throws css::uno::RuntimeException void setMinimum( sal_Int32 n ); /// @throws css::uno::RuntimeException - sal_Int32 getMinimum( ); + sal_Int32 getMinimum( ) const; // css::awt::VclWindowPeer void SAL_CALL setProperty( const OUString& PropertyName, const css::uno::Any& Value ) override; @@ -889,7 +889,7 @@ public: void SetFormatter( FormatterBase* pFormatter ) { mpFormatter = pFormatter; } void setStrictFormat( bool bStrict ); - bool isStrictFormat(); + bool isStrictFormat() const; // css::awt::VclWindowPeer void SAL_CALL setProperty( const OUString& PropertyName, const css::uno::Any& Value ) override; diff --git a/toolkit/source/awt/vclxwindow.cxx b/toolkit/source/awt/vclxwindow.cxx index d632fc13036b..58afca500b80 100644 --- a/toolkit/source/awt/vclxwindow.cxx +++ b/toolkit/source/awt/vclxwindow.cxx @@ -156,11 +156,11 @@ public: /** synchronously mbEnableVisible */ void setEnableVisible( bool bEnableVisible ) { mbEnableVisible = bEnableVisible; } - bool isEnableVisible() { return mbEnableVisible; } + bool isEnableVisible() const { return mbEnableVisible; } /** synchronously mbDirectVisible; */ void setDirectVisible( bool bDirectVisible ) { mbDirectVisible = bDirectVisible; } - bool isDirectVisible() { return mbDirectVisible; } + bool isDirectVisible() const { return mbDirectVisible; } /** impl-version of VCLXWindow::ImplExecuteAsyncWithoutSolarLock */ diff --git a/toolkit/source/awt/vclxwindows.cxx b/toolkit/source/awt/vclxwindows.cxx index d03331a5876f..46825604bd2d 100644 --- a/toolkit/source/awt/vclxwindows.cxx +++ b/toolkit/source/awt/vclxwindows.cxx @@ -3413,7 +3413,7 @@ void VCLXScrollBar::setMinimum( sal_Int32 n ) pScrollBar->SetRangeMin( n ); } -sal_Int32 VCLXScrollBar::getMinimum() +sal_Int32 VCLXScrollBar::getMinimum() const { SolarMutexGuard aGuard; @@ -4662,7 +4662,7 @@ void VCLXFormattedSpinField::setStrictFormat( bool bStrict ) pFormatter->SetStrictFormat( bStrict ); } -bool VCLXFormattedSpinField::isStrictFormat() +bool VCLXFormattedSpinField::isStrictFormat() const { FormatterBase* pFormatter = GetFormatter(); return pFormatter && pFormatter->IsStrictFormat(); |