diff options
author | Noel Grandin <noel@peralex.com> | 2021-02-08 14:54:50 +0200 |
---|---|---|
committer | Noel Grandin <noel.grandin@collabora.co.uk> | 2021-02-09 07:41:46 +0100 |
commit | 80ad69dc67fa0bfaf6f99cd0b5a458dcaaee6e33 (patch) | |
tree | 253763c6f32fb12a182d3a3b2e2a13f9f0c3b091 /include/svx/svdobj.hxx | |
parent | dae4b159f628915e1ab8841e6bb66961ce4ea800 (diff) |
return by unique_ptr from NewGeoData
Change-Id: Iab806959d79ce828069cb16b6a7883981d85dfaa
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/110579
Tested-by: Jenkins
Reviewed-by: Noel Grandin <noel.grandin@collabora.co.uk>
Diffstat (limited to 'include/svx/svdobj.hxx')
-rw-r--r-- | include/svx/svdobj.hxx | 7 |
1 files changed, 3 insertions, 4 deletions
diff --git a/include/svx/svdobj.hxx b/include/svx/svdobj.hxx index a944345eac99..bf70559ebdf4 100644 --- a/include/svx/svdobj.hxx +++ b/include/svx/svdobj.hxx @@ -1,4 +1,3 @@ -/* -*- Mode: C++; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- */ /* * This file is part of the LibreOffice project. * @@ -172,7 +171,7 @@ public: /** * All geometrical data of an arbitrary object for use in undo/redo */ -class SAL_DLLPUBLIC_RTTI SdrObjGeoData +class SVXCORE_DLLPUBLIC SdrObjGeoData { public: tools::Rectangle aBoundRect; @@ -600,7 +599,7 @@ public: virtual void NbcSetPoint(const Point& rPnt, sal_uInt32 i); // get all geometrical data for undo/redo - virtual SdrObjGeoData* GetGeoData() const; + virtual std::unique_ptr<SdrObjGeoData> GetGeoData() const; virtual void SetGeoData(const SdrObjGeoData& rGeo); // ItemSet access @@ -920,7 +919,7 @@ protected: /// data that must be saved for Undo. /// NewGeoData() creates an empty instance of a class derived from /// SdrObjGeoData. - virtual SdrObjGeoData* NewGeoData() const; + virtual std::unique_ptr<SdrObjGeoData> NewGeoData() const; virtual void SaveGeoData(SdrObjGeoData& rGeo) const; virtual void RestGeoData(const SdrObjGeoData& rGeo); |