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 /svx/source/svdraw/svdoedge.cxx | |
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 'svx/source/svdraw/svdoedge.cxx')
-rw-r--r-- | svx/source/svdraw/svdoedge.cxx | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/svx/source/svdraw/svdoedge.cxx b/svx/source/svdraw/svdoedge.cxx index 3e164e216f03..093b384ce4c1 100644 --- a/svx/source/svdraw/svdoedge.cxx +++ b/svx/source/svdraw/svdoedge.cxx @@ -2455,9 +2455,9 @@ SdrEdgeObjGeoData::~SdrEdgeObjGeoData() { } -SdrObjGeoData* SdrEdgeObj::NewGeoData() const +std::unique_ptr<SdrObjGeoData> SdrEdgeObj::NewGeoData() const { - return new SdrEdgeObjGeoData; + return std::make_unique<SdrEdgeObjGeoData>(); } void SdrEdgeObj::SaveGeoData(SdrObjGeoData& rGeo) const |