From 83fd71e041f2c0520c4cc213e238c7f3c674c5a3 Mon Sep 17 00:00:00 2001 From: Noel Grandin Date: Tue, 24 Oct 2017 14:07:42 +0200 Subject: loplugin:constmethod in tools,sax,UnoControls Change-Id: Ie05e44e2a4019e2549843961ebfa04fef7b7aeb4 Reviewed-on: https://gerrit.libreoffice.org/43767 Tested-by: Jenkins Reviewed-by: Noel Grandin --- UnoControls/inc/basecontrol.hxx | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) (limited to 'UnoControls') diff --git a/UnoControls/inc/basecontrol.hxx b/UnoControls/inc/basecontrol.hxx index 6967a3ff1085..7f81e13335f2 100644 --- a/UnoControls/inc/basecontrol.hxx +++ b/UnoControls/inc/basecontrol.hxx @@ -346,15 +346,15 @@ public: protected: using OComponentHelper::disposing; - const css::uno::Reference< css::uno::XComponentContext >& impl_getComponentContext() { return m_xComponentContext;} + const css::uno::Reference< css::uno::XComponentContext >& impl_getComponentContext() const { return m_xComponentContext;} - const css::uno::Reference< css::awt::XWindow >& impl_getPeerWindow() { return m_xPeerWindow;} + const css::uno::Reference< css::awt::XWindow >& impl_getPeerWindow() const { return m_xPeerWindow;} - const css::uno::Reference< css::awt::XGraphics >& impl_getGraphicsPeer() { return m_xGraphicsPeer;} + const css::uno::Reference< css::awt::XGraphics >& impl_getGraphicsPeer() const { return m_xGraphicsPeer;} - const sal_Int32& impl_getWidth() { return m_nWidth;} + sal_Int32 impl_getWidth() const { return m_nWidth;} - const sal_Int32& impl_getHeight() { return m_nHeight;} + sal_Int32 impl_getHeight() const { return m_nHeight;} virtual css::awt::WindowDescriptor* impl_getWindowDescriptor( const css::uno::Reference< css::awt::XWindowPeer >& xParentPeer @@ -366,7 +366,7 @@ protected: virtual void impl_recalcLayout( const css::awt::WindowEvent& aEvent ); - const css::uno::Reference< css::uno::XInterface >& impl_getDelegator() { return m_xDelegator;} + const css::uno::Reference< css::uno::XInterface >& impl_getDelegator() const { return m_xDelegator;} private: -- cgit