summaryrefslogtreecommitdiff
path: root/vbahelper/source/msforms
diff options
context:
space:
mode:
authorNoel Grandin <noel.grandin@collabora.co.uk>2019-09-26 03:32:12 +0200
committerNoel Grandin <noel.grandin@collabora.co.uk>2019-09-26 09:05:31 +0200
commitf04bd7975292d297b72e8bb23aa74a2a5198aa23 (patch)
tree6cda3006e60922154b1ec04fb216c90244dc28d3 /vbahelper/source/msforms
parente7a1d057c414b78fdd685f1de0008efc820bfa51 (diff)
loplugin:constmethod in vbahelper
Change-Id: I40a59224286cb1eaece58f5f52b26f9191171be8 Reviewed-on: https://gerrit.libreoffice.org/79581 Tested-by: Jenkins Reviewed-by: Noel Grandin <noel.grandin@collabora.co.uk>
Diffstat (limited to 'vbahelper/source/msforms')
-rw-r--r--vbahelper/source/msforms/vbacontrol.cxx2
-rw-r--r--vbahelper/source/msforms/vbacontrol.hxx2
2 files changed, 2 insertions, 2 deletions
diff --git a/vbahelper/source/msforms/vbacontrol.cxx b/vbahelper/source/msforms/vbacontrol.cxx
index ba0a6f994035..aa386fdae3e7 100644
--- a/vbahelper/source/msforms/vbacontrol.cxx
+++ b/vbahelper/source/msforms/vbacontrol.cxx
@@ -728,7 +728,7 @@ void ScVbaControl::setBackColor( sal_Int32 nBackColor )
m_xProps->setPropertyValue( "BackgroundColor" , uno::makeAny( XLRGBToOORGB( nBackColor ) ) );
}
-bool ScVbaControl::getAutoSize()
+bool ScVbaControl::getAutoSize() const
{
bool bIsResizeEnabled = false;
uno::Reference< uno::XInterface > xIf( m_xControl, uno::UNO_SET_THROW );
diff --git a/vbahelper/source/msforms/vbacontrol.hxx b/vbahelper/source/msforms/vbacontrol.hxx
index 675bb0874e03..2e7c408d5cf2 100644
--- a/vbahelper/source/msforms/vbacontrol.hxx
+++ b/vbahelper/source/msforms/vbacontrol.hxx
@@ -111,7 +111,7 @@ public:
/// @throws css::uno::RuntimeException
void setBackColor( sal_Int32 nBackColor );
/// @throws css::uno::RuntimeException
- bool getAutoSize();
+ bool getAutoSize() const;
/// @throws css::uno::RuntimeException
void setAutoSize( bool bAutoSize );
/// @throws css::uno::RuntimeException