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 /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 'svx')
-rw-r--r-- | svx/inc/galbrws2.hxx | 2 | ||||
-rw-r--r-- | svx/source/gallery2/galbrws2.cxx | 2 | ||||
-rw-r--r-- | svx/source/gallery2/gallerybinaryengine.cxx | 12 |
3 files changed, 8 insertions, 8 deletions
diff --git a/svx/inc/galbrws2.hxx b/svx/inc/galbrws2.hxx index d77f4a785d21..bbf13cff5c3f 100644 --- a/svx/inc/galbrws2.hxx +++ b/svx/inc/galbrws2.hxx @@ -140,7 +140,7 @@ public: INetURLObject GetURL() const; OUString GetFilterName() const; - sal_Int8 AcceptDrop( DropTargetHelper& rTarget ); + sal_Int8 AcceptDrop( const DropTargetHelper& rTarget ); sal_Int8 ExecuteDrop( const ExecuteDropEvent& rEvt ); bool StartDrag(); void TogglePreview(); diff --git a/svx/source/gallery2/galbrws2.cxx b/svx/source/gallery2/galbrws2.cxx index 4533981056ad..e17e275600f5 100644 --- a/svx/source/gallery2/galbrws2.cxx +++ b/svx/source/gallery2/galbrws2.cxx @@ -426,7 +426,7 @@ void GalleryBrowser2::Notify( SfxBroadcaster&, const SfxHint& rHint ) } } -sal_Int8 GalleryBrowser2::AcceptDrop( DropTargetHelper& rTarget ) +sal_Int8 GalleryBrowser2::AcceptDrop( const DropTargetHelper& rTarget ) { sal_Int8 nRet = DND_ACTION_NONE; diff --git a/svx/source/gallery2/gallerybinaryengine.cxx b/svx/source/gallery2/gallerybinaryengine.cxx index eb740c5a0cff..ec68e830f79b 100644 --- a/svx/source/gallery2/gallerybinaryengine.cxx +++ b/svx/source/gallery2/gallerybinaryengine.cxx @@ -131,7 +131,7 @@ bool GalleryBinaryEngine::implWrite(const GalleryTheme& rTheme, const GalleryThe } void GalleryBinaryEngine::insertObject(const SgaObject& rObj, GalleryObject* pFoundEntry, - sal_uInt32& rInsertPos) + sal_uInt32 nInsertPos) { if (pFoundEntry) { @@ -150,14 +150,14 @@ void GalleryBinaryEngine::insertObject(const SgaObject& rObj, GalleryObject* pFo else if (rObj.GetTitle() == "__<empty>__") const_cast<SgaObject&>(rObj).SetTitle(""); - implWriteSgaObject(rObj, rInsertPos, &aNewEntry); + implWriteSgaObject(rObj, nInsertPos, &aNewEntry); pFoundEntry->nOffset = aNewEntry.nOffset; } else - implWriteSgaObject(rObj, rInsertPos, nullptr); + implWriteSgaObject(rObj, nInsertPos, nullptr); } -void GalleryBinaryEngine::removeObject(std::unique_ptr<GalleryObject>& pEntry) +void GalleryBinaryEngine::removeObject(const std::unique_ptr<GalleryObject>& pEntry) { if (mrGalleryObjectCollection.getObjectList().empty()) KillFile(GetSdgURL()); @@ -489,7 +489,7 @@ INetURLObject GalleryBinaryEngine::implCreateUniqueURL(SgaObjKind eObjKind, } SgaObjectBmp GalleryBinaryEngine::insertGraphic(const Graphic& rGraphic, const GfxLink& aGfxLink, - ConvertDataFormat& nExportFormat, + const ConvertDataFormat& nExportFormat, const INetURLObject& rUserURL) { const INetURLObject aURL(implCreateUniqueURL(SgaObjKind::Bitmap, rUserURL, nExportFormat)); @@ -530,7 +530,7 @@ SgaObjectBmp GalleryBinaryEngine::insertGraphic(const Graphic& rGraphic, const G return SgaObjectBmp(); } -SgaObjectSvDraw GalleryBinaryEngine::updateSvDrawObject(GalleryObject* pEntry) +SgaObjectSvDraw GalleryBinaryEngine::updateSvDrawObject(const GalleryObject* pEntry) { if (GetSvDrawStorage().is()) { |