summaryrefslogtreecommitdiff
path: root/include
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
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')
-rw-r--r--include/sfx2/objface.hxx2
-rw-r--r--include/sfx2/objsh.hxx10
-rw-r--r--include/sfx2/shell.hxx4
-rw-r--r--include/svtools/ctrlbox.hxx2
-rw-r--r--include/svx/gallerybinaryengine.hxx9
5 files changed, 14 insertions, 13 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); \
}
diff --git a/include/svtools/ctrlbox.hxx b/include/svtools/ctrlbox.hxx
index 817e276665d4..68631f7f0d20 100644
--- a/include/svtools/ctrlbox.hxx
+++ b/include/svtools/ctrlbox.hxx
@@ -379,7 +379,7 @@ public:
void connect_get_property_tree(const Link<tools::JsonWriter&, void>& rLink) { m_xComboBox->connect_get_property_tree(rLink); }
void set_entry_width_chars(int nWidth) { m_xComboBox->set_entry_width_chars(nWidth); }
void set_size_request(int nWidth, int nHeight) { m_xComboBox->set_size_request(nWidth, nHeight); }
- int get_max_mru_count() { return m_xComboBox->get_max_mru_count(); }
+ int get_max_mru_count() const { return m_xComboBox->get_max_mru_count(); }
void set_max_mru_count(int nCount) { m_xComboBox->set_max_mru_count(nCount); }
// font size is in points, not pixels, e.g. see Window::[G]etPointFont
diff --git a/include/svx/gallerybinaryengine.hxx b/include/svx/gallerybinaryengine.hxx
index 1e6fd0b28eb1..4f1351880269 100644
--- a/include/svx/gallerybinaryengine.hxx
+++ b/include/svx/gallerybinaryengine.hxx
@@ -76,8 +76,8 @@ public:
SAL_DLLPRIVATE bool implWrite(const GalleryTheme& rTheme, const GalleryThemeEntry* pThm);
- void insertObject(const SgaObject& rObj, GalleryObject* pFoundEntry, sal_uInt32& rInsertPos);
- void removeObject(std::unique_ptr<GalleryObject>& pEntry);
+ void insertObject(const SgaObject& rObj, GalleryObject* pFoundEntry, sal_uInt32 nInsertPos);
+ void removeObject(const std::unique_ptr<GalleryObject>& pEntry);
std::unique_ptr<SgaObject> implReadSgaObject(GalleryObject const* pEntry);
bool implWriteSgaObject(const SgaObject& rObj, sal_uInt32 nPos, GalleryObject* pExistentEntry);
@@ -94,9 +94,10 @@ public:
ConvertDataFormat nFormat = ConvertDataFormat::Unknown);
SgaObjectBmp insertGraphic(const Graphic& rGraphic, const GfxLink& aGfxLink,
- ConvertDataFormat& nExportFormat, const INetURLObject& rUserURL);
+ const ConvertDataFormat& nExportFormat,
+ const INetURLObject& rUserURL);
- SgaObjectSvDraw updateSvDrawObject(GalleryObject* pEntry);
+ SgaObjectSvDraw updateSvDrawObject(const GalleryObject* pEntry);
void updateTheme();
static void insertFileOrDirURL(const INetURLObject& rFileOrDirURL,