summaryrefslogtreecommitdiff
path: root/include/sfx2
diff options
context:
space:
mode:
authorNoel <noelgrandin@gmail.com>2020-10-06 12:27:39 +0200
committerNoel Grandin <noel.grandin@collabora.co.uk>2020-10-06 15:30:42 +0200
commit7cd179df80957b7daefab028cf35aebb1083b014 (patch)
treef76056c2eaf044088cd1dc8159136bac774500f0 /include/sfx2
parente1482daecff877e3b0e22f1fc864e614376cb6b1 (diff)
loplugin:const& make some params and methods const
Change-Id: I2973128a9c6c53187e1da400d1a5df763d515596 Reviewed-on: https://gerrit.libreoffice.org/c/core/+/104020 Tested-by: Jenkins Reviewed-by: Noel Grandin <noel.grandin@collabora.co.uk>
Diffstat (limited to 'include/sfx2')
-rw-r--r--include/sfx2/objface.hxx2
-rw-r--r--include/sfx2/objsh.hxx10
-rw-r--r--include/sfx2/shell.hxx4
3 files changed, 8 insertions, 8 deletions
diff --git a/include/sfx2/objface.hxx b/include/sfx2/objface.hxx
index bda6ecc05462..fadf510ca997 100644
--- a/include/sfx2/objface.hxx
+++ b/include/sfx2/objface.hxx
@@ -102,7 +102,7 @@ public:
const OUString& GetPopupMenuName() const;
StatusBarId GetStatusBarId() const;
- void Register( SfxModule* );
+ void Register( const SfxModule* );
SAL_DLLPRIVATE bool ContainsSlot_Impl( const SfxSlot *pSlot ) const
{ return pSlot >= pSlots && pSlot < pSlots + Count(); }
diff --git a/include/sfx2/objsh.hxx b/include/sfx2/objsh.hxx
index e60139348c26..78a1f3eb22e6 100644
--- a/include/sfx2/objsh.hxx
+++ b/include/sfx2/objsh.hxx
@@ -594,11 +594,11 @@ public:
const css::uno::Reference<css::embed::XStorage>& xTarget,
const css::uno::Sequence<OUString>& rExceptions = css::uno::Sequence<OUString>());
- bool isEditDocLocked();
- bool isContentExtractionLocked();
- bool isExportLocked();
- bool isPrintLocked();
- bool isSaveLocked();
+ bool isEditDocLocked() const;
+ bool isContentExtractionLocked() const;
+ bool isExportLocked() const;
+ bool isPrintLocked() const;
+ bool isSaveLocked() const;
// The functions from SvPersist
void EnableSetModified( bool bEnable = true );
diff --git a/include/sfx2/shell.hxx b/include/sfx2/shell.hxx
index f341644d7f16..60de3579e8d3 100644
--- a/include/sfx2/shell.hxx
+++ b/include/sfx2/shell.hxx
@@ -537,7 +537,7 @@ inline void SfxShell::SetPool
static SfxInterface* pInterface; \
static SfxInterface* GetStaticInterface(); \
static SfxInterfaceId GetInterfaceId() {return nId;} \
- static void RegisterInterface(SfxModule* pMod=nullptr); \
+ static void RegisterInterface(const SfxModule* pMod=nullptr); \
virtual SfxInterface* GetInterface() const override;
#define SFX_TMPL_INTERFACE(Class,SuperClass,Abstract) \
@@ -563,7 +563,7 @@ inline void SfxShell::SetPool
return GetStaticInterface(); \
} \
\
- void Class::RegisterInterface(SfxModule* pMod) \
+ void Class::RegisterInterface(const SfxModule* pMod) \
{ \
GetStaticInterface()->Register(pMod); \
}