summaryrefslogtreecommitdiff
path: root/include/svx/galtheme.hxx
diff options
context:
space:
mode:
authorNoel Grandin <noel.grandin@collabora.co.uk>2018-08-11 10:22:43 +0200
committerNoel Grandin <noel.grandin@collabora.co.uk>2018-08-15 10:24:28 +0200
commitf71f16b742faa75fe0cab6b899b99ee42d5ec6c7 (patch)
tree04aad55b6ba9d5b5f9dbd577efd6bfb04c4e3d78 /include/svx/galtheme.hxx
parenta84abd9e29b1920af87a1c7510bd92355594f9af (diff)
loplugin:useuniqueptr pass SgaObject around by std::unique_ptr
Change-Id: I88ef5de94f83cd8f7a7d2a60b072cc23bd147b27 Reviewed-on: https://gerrit.libreoffice.org/59009 Tested-by: Jenkins Reviewed-by: Noel Grandin <noel.grandin@collabora.co.uk>
Diffstat (limited to 'include/svx/galtheme.hxx')
-rw-r--r--include/svx/galtheme.hxx6
1 files changed, 3 insertions, 3 deletions
diff --git a/include/svx/galtheme.hxx b/include/svx/galtheme.hxx
index d967392fa3f6..98bf45876bc0 100644
--- a/include/svx/galtheme.hxx
+++ b/include/svx/galtheme.hxx
@@ -31,6 +31,7 @@
#include <svtools/transfer.hxx>
#include <svx/svdmodel.hxx>
#include <svx/galmisc.hxx>
+#include <memory>
#include <vector>
class SotStorage;
@@ -90,7 +91,7 @@ private:
bool bAbortActualize;
SAL_DLLPRIVATE void ImplCreateSvDrawStorage();
- SgaObject* ImplReadSgaObject( GalleryObject const * pEntry );
+ std::unique_ptr<SgaObject> ImplReadSgaObject( GalleryObject const * pEntry );
SAL_DLLPRIVATE bool ImplWriteSgaObject(const SgaObject& rObj, sal_uInt32 nPos, GalleryObject* pExistentEntry);
SAL_DLLPRIVATE void ImplWrite();
SAL_DLLPRIVATE const GalleryObject* ImplGetGalleryObject(sal_uInt32 nPos) const
@@ -122,8 +123,7 @@ public:
SAL_DLLPRIVATE sal_uInt32 GetObjectCount() const { return aObjectList.size(); }
- SgaObject* AcquireObject(sal_uInt32 nPos);
- static void ReleaseObject(SgaObject* pObj);
+ std::unique_ptr<SgaObject> AcquireObject(sal_uInt32 nPos);
bool InsertObject(const SgaObject& rObj, sal_uInt32 nPos = SAL_MAX_UINT32);
void RemoveObject(sal_uInt32 nPos);