summaryrefslogtreecommitdiff
path: root/framework
diff options
context:
space:
mode:
authorNoel Grandin <noel.grandin@collabora.co.uk>2019-09-25 13:31:06 +0200
committerNoel Grandin <noel.grandin@collabora.co.uk>2019-09-26 03:04:45 +0200
commit4e67474a6e4dbfeff5316dcf08b44cfead148609 (patch)
tree630190f52de6572a46bb13b9ae6ae5b5709e64a7 /framework
parent3b13f813da6ad3bd3e4f9dc24b7deb84ea557063 (diff)
loplugin:constmethod in framework..lotuswordpro
Change-Id: I14a3855a75cf081d86c2a404966db38c617c0256 Reviewed-on: https://gerrit.libreoffice.org/79541 Tested-by: Jenkins Reviewed-by: Noel Grandin <noel.grandin@collabora.co.uk>
Diffstat (limited to 'framework')
-rw-r--r--framework/inc/uiconfiguration/globalsettings.hxx2
-rw-r--r--framework/inc/uielement/toolbarmerger.hxx2
-rw-r--r--framework/source/accelerators/presethandler.cxx2
-rw-r--r--framework/source/inc/accelerators/presethandler.hxx2
-rw-r--r--framework/source/layoutmanager/toolbarlayoutmanager.hxx2
-rw-r--r--framework/source/uiconfiguration/globalsettings.cxx2
-rw-r--r--framework/source/uiconfiguration/imagemanagerimpl.cxx4
-rw-r--r--framework/source/uiconfiguration/imagemanagerimpl.hxx4
-rw-r--r--framework/source/uielement/toolbarmerger.cxx2
9 files changed, 11 insertions, 11 deletions
diff --git a/framework/inc/uiconfiguration/globalsettings.hxx b/framework/inc/uiconfiguration/globalsettings.hxx
index c8d87969139d..574beacfdcb9 100644
--- a/framework/inc/uiconfiguration/globalsettings.hxx
+++ b/framework/inc/uiconfiguration/globalsettings.hxx
@@ -49,7 +49,7 @@ class GlobalSettings
};
// settings access
- bool HasToolbarStatesInfo();
+ bool HasToolbarStatesInfo() const;
bool GetToolbarStateInfo( StateInfo eStateInfo, css::uno::Any& aValue );
private:
diff --git a/framework/inc/uielement/toolbarmerger.hxx b/framework/inc/uielement/toolbarmerger.hxx
index 24017793bede..cc0448a8f76f 100644
--- a/framework/inc/uielement/toolbarmerger.hxx
+++ b/framework/inc/uielement/toolbarmerger.hxx
@@ -82,7 +82,7 @@ class ToolBarMerger
OUString& rControlType,
sal_uInt16& rWidth );
- static ReferenceToolbarPathInfo FindReferencePoint( ToolBox* pToolbar,
+ static ReferenceToolbarPathInfo FindReferencePoint( const ToolBox* pToolbar,
const OUString& rReferencePoint );
static bool ProcessMergeOperation( ToolBox* pToolbar,
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;