From bdc8fda4be875ff9cfa9c3f4b5e40284a8637374 Mon Sep 17 00:00:00 2001 From: Noel Grandin Date: Wed, 25 Sep 2019 13:31:52 +0200 Subject: loplugin:constmethod in sc Change-Id: I78c4fb4acf21756f91582caee5e30e3ad1fc2ae4 Reviewed-on: https://gerrit.libreoffice.org/79543 Tested-by: Jenkins Reviewed-by: Noel Grandin --- scripting/source/provider/BrowseNodeFactoryImpl.cxx | 2 +- scripting/source/provider/BrowseNodeFactoryImpl.hxx | 2 +- scripting/source/provider/MasterScriptProvider.hxx | 2 +- scripting/source/vbaevents/eventhelper.cxx | 4 ++-- 4 files changed, 5 insertions(+), 5 deletions(-) (limited to 'scripting/source') diff --git a/scripting/source/provider/BrowseNodeFactoryImpl.cxx b/scripting/source/provider/BrowseNodeFactoryImpl.cxx index 83d3cbec80aa..5603cbdae062 100644 --- a/scripting/source/provider/BrowseNodeFactoryImpl.cxx +++ b/scripting/source/provider/BrowseNodeFactoryImpl.cxx @@ -608,7 +608,7 @@ BrowseNodeFactoryImpl::createView( sal_Int16 viewType ) } Reference< browse::XBrowseNode > -BrowseNodeFactoryImpl::getOrganizerHierarchy() +BrowseNodeFactoryImpl::getOrganizerHierarchy() const { Reference< browse::XBrowseNode > xRet = new DefaultRootBrowseNode( m_xComponentContext ); return xRet; diff --git a/scripting/source/provider/BrowseNodeFactoryImpl.hxx b/scripting/source/provider/BrowseNodeFactoryImpl.hxx index d05e1094d97c..deef03d35d56 100644 --- a/scripting/source/provider/BrowseNodeFactoryImpl.hxx +++ b/scripting/source/provider/BrowseNodeFactoryImpl.hxx @@ -64,7 +64,7 @@ public: private: /// @throws css::uno::RuntimeException css::uno::Reference< css::script::browse::XBrowseNode > - getOrganizerHierarchy(); + getOrganizerHierarchy() const; }; diff --git a/scripting/source/provider/MasterScriptProvider.hxx b/scripting/source/provider/MasterScriptProvider.hxx index bb1ffe9306d8..c0bd17674eca 100644 --- a/scripting/source/provider/MasterScriptProvider.hxx +++ b/scripting/source/provider/MasterScriptProvider.hxx @@ -95,7 +95,7 @@ public: virtual void SAL_CALL initialize( const css::uno::Sequence < css::uno::Any > & args ) override; // returns context string for this provider, eg - const OUString& getContextString() { return m_sCtxString; } + const OUString& getContextString() const { return m_sCtxString; } private: static OUString parseLocationName( const OUString& location ); diff --git a/scripting/source/vbaevents/eventhelper.cxx b/scripting/source/vbaevents/eventhelper.cxx index c6ba9161a549..f5e148b47029 100644 --- a/scripting/source/vbaevents/eventhelper.cxx +++ b/scripting/source/vbaevents/eventhelper.cxx @@ -293,7 +293,7 @@ public: explicit ScriptEventHelper( const OUString& sCntrlServiceName ); ~ScriptEventHelper(); Sequence< ScriptEventDescriptor > createEvents( const OUString& sCodeName ); - Sequence< OUString > getEventListeners(); + Sequence< OUString > getEventListeners() const; private: Reference< XComponentContext > m_xCtx; Reference< XInterface > m_xControl; @@ -372,7 +372,7 @@ ScriptEventHelper::~ScriptEventHelper() } Sequence< OUString > -ScriptEventHelper::getEventListeners() +ScriptEventHelper::getEventListeners() const { std::list< OUString > eventMethods; -- cgit