From 4e67474a6e4dbfeff5316dcf08b44cfead148609 Mon Sep 17 00:00:00 2001 From: Noel Grandin Date: Wed, 25 Sep 2019 13:31:06 +0200 Subject: loplugin:constmethod in framework..lotuswordpro Change-Id: I14a3855a75cf081d86c2a404966db38c617c0256 Reviewed-on: https://gerrit.libreoffice.org/79541 Tested-by: Jenkins Reviewed-by: Noel Grandin --- framework/source/accelerators/presethandler.cxx | 2 +- framework/source/inc/accelerators/presethandler.hxx | 2 +- framework/source/layoutmanager/toolbarlayoutmanager.hxx | 2 +- framework/source/uiconfiguration/globalsettings.cxx | 2 +- framework/source/uiconfiguration/imagemanagerimpl.cxx | 4 ++-- framework/source/uiconfiguration/imagemanagerimpl.hxx | 4 ++-- framework/source/uielement/toolbarmerger.cxx | 2 +- 7 files changed, 9 insertions(+), 9 deletions(-) (limited to 'framework/source') diff --git a/framework/source/accelerators/presethandler.cxx b/framework/source/accelerators/presethandler.cxx index b8b637c5455e..b81abece09c1 100644 --- a/framework/source/accelerators/presethandler.cxx +++ b/framework/source/accelerators/presethandler.cxx @@ -278,7 +278,7 @@ css::uno::Reference< css::embed::XStorage > PresetHandler::getOrCreateRootStorag return xStorage; } -css::uno::Reference< css::embed::XStorage > PresetHandler::getWorkingStorageUser() +css::uno::Reference< css::embed::XStorage > PresetHandler::getWorkingStorageUser() const { SolarMutexGuard g; return m_xWorkingStorageUser; diff --git a/framework/source/inc/accelerators/presethandler.hxx b/framework/source/inc/accelerators/presethandler.hxx index 072011b1de06..027f4656cab7 100644 --- a/framework/source/inc/accelerators/presethandler.hxx +++ b/framework/source/inc/accelerators/presethandler.hxx @@ -158,7 +158,7 @@ class PresetHandler @return css::embed::XStorage which the current working storage. */ - css::uno::Reference< css::embed::XStorage > getWorkingStorageUser(); + css::uno::Reference< css::embed::XStorage > getWorkingStorageUser() const; /** @short check if there is a parent storage well known for the specified child storage and return it. diff --git a/framework/source/layoutmanager/toolbarlayoutmanager.hxx b/framework/source/layoutmanager/toolbarlayoutmanager.hxx index c24cee6ee53f..377929309fdc 100644 --- a/framework/source/layoutmanager/toolbarlayoutmanager.hxx +++ b/framework/source/layoutmanager/toolbarlayoutmanager.hxx @@ -87,7 +87,7 @@ class ToolbarLayoutManager : public ::cppu::WeakImplHelper< css::awt::XDockableW bool isPreviewFrame(); // layouting - bool isLayoutDirty() { return m_bLayoutDirty;} + bool isLayoutDirty() const { return m_bLayoutDirty;} void doLayout(const ::Size& aContainerSize); // creation/destruction diff --git a/framework/source/uiconfiguration/globalsettings.cxx b/framework/source/uiconfiguration/globalsettings.cxx index 73bc3effb7e7..02d6032093f7 100644 --- a/framework/source/uiconfiguration/globalsettings.cxx +++ b/framework/source/uiconfiguration/globalsettings.cxx @@ -243,7 +243,7 @@ GlobalSettings::~GlobalSettings() } // settings access -bool GlobalSettings::HasToolbarStatesInfo() +bool GlobalSettings::HasToolbarStatesInfo() const { GlobalSettings_Access* pSettings( GetGlobalSettings( m_xContext )); diff --git a/framework/source/uiconfiguration/imagemanagerimpl.cxx b/framework/source/uiconfiguration/imagemanagerimpl.cxx index a49f248d3a4d..ed21dd818d5e 100644 --- a/framework/source/uiconfiguration/imagemanagerimpl.cxx +++ b/framework/source/uiconfiguration/imagemanagerimpl.cxx @@ -1149,13 +1149,13 @@ void ImageManagerImpl::storeToStorage( const uno::Reference< XStorage >& Storage } } -bool ImageManagerImpl::isModified() +bool ImageManagerImpl::isModified() const { SolarMutexGuard g; return m_bModified; } -bool ImageManagerImpl::isReadOnly() +bool ImageManagerImpl::isReadOnly() const { SolarMutexGuard g; return m_bReadOnly; diff --git a/framework/source/uiconfiguration/imagemanagerimpl.hxx b/framework/source/uiconfiguration/imagemanagerimpl.hxx index 27835e87fca1..13cbfd4c7ec2 100644 --- a/framework/source/uiconfiguration/imagemanagerimpl.hxx +++ b/framework/source/uiconfiguration/imagemanagerimpl.hxx @@ -140,9 +140,9 @@ namespace framework /// @throws css::uno::RuntimeException void storeToStorage( const css::uno::Reference< css::embed::XStorage >& Storage ); /// @throws css::uno::RuntimeException - bool isModified(); + bool isModified() const; /// @throws css::uno::RuntimeException - bool isReadOnly(); + bool isReadOnly() const; void clear(); diff --git a/framework/source/uielement/toolbarmerger.cxx b/framework/source/uielement/toolbarmerger.cxx index e66a31e77d85..4e257d02954b 100644 --- a/framework/source/uielement/toolbarmerger.cxx +++ b/framework/source/uielement/toolbarmerger.cxx @@ -224,7 +224,7 @@ void ToolBarMerger::ConvertSequenceToValues( position of the reference point and the toolbar used. */ ReferenceToolbarPathInfo ToolBarMerger::FindReferencePoint( - ToolBox* pToolbar, + const ToolBox* pToolbar, const OUString& rReferencePoint ) { ReferenceToolbarPathInfo aResult; -- cgit