diff options
author | Noel <noelgrandin@gmail.com> | 2020-10-06 12:27:39 +0200 |
---|---|---|
committer | Noel Grandin <noel.grandin@collabora.co.uk> | 2020-10-06 15:30:42 +0200 |
commit | 7cd179df80957b7daefab028cf35aebb1083b014 (patch) | |
tree | f76056c2eaf044088cd1dc8159136bac774500f0 /include/svx | |
parent | e1482daecff877e3b0e22f1fc864e614376cb6b1 (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/svx')
-rw-r--r-- | include/svx/gallerybinaryengine.hxx | 9 |
1 files changed, 5 insertions, 4 deletions
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, |