diff options
author | Noel Grandin <noel.grandin@collabora.co.uk> | 2018-04-12 15:07:39 +0200 |
---|---|---|
committer | Noel Grandin <noel.grandin@collabora.co.uk> | 2018-04-13 09:17:34 +0200 |
commit | 0fdcfedd898afcc03332a432ef21052eee6b3a3a (patch) | |
tree | 46ed1c968570414ffa0917d2324863234cc504fe /svx/source/dialog/imapwnd.hxx | |
parent | d0d4a3647692883b17a1acd96a01a1857c5872b1 (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.hxx | 2 |
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; } |