From 8a82dca5bd43080f0f5597b915d1433b1c0f141a Mon Sep 17 00:00:00 2001 From: Noel Grandin Date: Thu, 22 Aug 2019 13:41:08 +0200 Subject: loplugin:constmethod in toolkit Change-Id: Id80ee487d7083da5c1f1c4d012d6339700471204 Reviewed-on: https://gerrit.libreoffice.org/77952 Tested-by: Jenkins Reviewed-by: Noel Grandin --- include/toolkit/awt/vclxwindows.hxx | 4 ++-- toolkit/source/awt/vclxwindow.cxx | 4 ++-- 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(); -- cgit