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 /sc/inc/userdat.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 'sc/inc/userdat.hxx')
-rw-r--r-- | sc/inc/userdat.hxx | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/sc/inc/userdat.hxx b/sc/inc/userdat.hxx index 04c6893faded..655d869b0d84 100644 --- a/sc/inc/userdat.hxx +++ b/sc/inc/userdat.hxx @@ -60,7 +60,7 @@ public: }; private: - virtual ScDrawObjData* Clone( SdrObject* pObj ) const override; + virtual std::unique_ptr<SdrObjUserData> Clone( SdrObject* pObj ) const override; // Stores the last cell rect this shape was anchored to. // Needed when the cell is resized to resize the image accordingly. @@ -78,7 +78,7 @@ public: ScIMapInfo( const ScIMapInfo& rIMapInfo ); virtual ~ScIMapInfo() override; - virtual SdrObjUserData* Clone( SdrObject* pObj ) const override; + virtual std::unique_ptr<SdrObjUserData> Clone( SdrObject* pObj ) const override; void SetImageMap( const ImageMap& rIMap ) { aImageMap = rIMap; } const ImageMap& GetImageMap() const { return aImageMap; } @@ -90,7 +90,7 @@ public: ScMacroInfo(); virtual ~ScMacroInfo() override; - virtual SdrObjUserData* Clone( SdrObject* pObj ) const override; + virtual std::unique_ptr<SdrObjUserData> Clone( SdrObject* pObj ) const override; void SetMacro( const OUString& rMacro ) { maMacro = rMacro; } const OUString& GetMacro() const { return maMacro; } |