summaryrefslogtreecommitdiff
path: root/svx/source/dialog/imapwnd.hxx
diff options
context:
space:
mode:
authorNoel Grandin <noel.grandin@collabora.co.uk>2018-04-12 15:07:39 +0200
committerNoel Grandin <noel.grandin@collabora.co.uk>2018-04-13 09:17:34 +0200
commit0fdcfedd898afcc03332a432ef21052eee6b3a3a (patch)
tree46ed1c968570414ffa0917d2324863234cc504fe /svx/source/dialog/imapwnd.hxx
parentd0d4a3647692883b17a1acd96a01a1857c5872b1 (diff)
make SdrObjUserData::Clone return std::unique_ptr
Change-Id: Iffe047b081fde0bb582d8730a8e96d2597c7567a Reviewed-on: https://gerrit.libreoffice.org/52780 Tested-by: Jenkins <ci@libreoffice.org> Reviewed-by: Noel Grandin <noel.grandin@collabora.co.uk>
Diffstat (limited to 'svx/source/dialog/imapwnd.hxx')
-rw-r--r--svx/source/dialog/imapwnd.hxx2
1 files changed, 1 insertions, 1 deletions
diff --git a/svx/source/dialog/imapwnd.hxx b/svx/source/dialog/imapwnd.hxx
index f97fd4b60ffa..4ee734ace6a4 100644
--- a/svx/source/dialog/imapwnd.hxx
+++ b/svx/source/dialog/imapwnd.hxx
@@ -63,7 +63,7 @@ public:
SdrObjUserData ( SdrInventor::IMap, SVD_IMAP_USERDATA ),
mpObj ( rIMapUserData.mpObj ) {}
- virtual SdrObjUserData* Clone( SdrObject * ) const override { return new IMapUserData( *this ); }
+ virtual std::unique_ptr<SdrObjUserData> Clone( SdrObject * ) const override { return std::unique_ptr<SdrObjUserData>(new IMapUserData( *this )); }
const IMapObjectPtr& GetObject() const { return mpObj; }
void ReplaceObject( const IMapObjectPtr& pNewIMapObject ) { mpObj = pNewIMapObject; }