summaryrefslogtreecommitdiff
path: root/sc/source/filter/xml/xmlexprt.cxx
diff options
context:
space:
mode:
authorNoel Grandin <noel@peralex.com>2021-02-08 14:54:50 +0200
committerNoel Grandin <noel.grandin@collabora.co.uk>2021-02-09 07:41:46 +0100
commit80ad69dc67fa0bfaf6f99cd0b5a458dcaaee6e33 (patch)
tree253763c6f32fb12a182d3a3b2e2a13f9f0c3b091 /sc/source/filter/xml/xmlexprt.cxx
parentdae4b159f628915e1ab8841e6bb66961ce4ea800 (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 'sc/source/filter/xml/xmlexprt.cxx')
-rw-r--r--sc/source/filter/xml/xmlexprt.cxx2
1 files changed, 1 insertions, 1 deletions
diff --git a/sc/source/filter/xml/xmlexprt.cxx b/sc/source/filter/xml/xmlexprt.cxx
index 9ff4d37195b5..171d36e02ffb 100644
--- a/sc/source/filter/xml/xmlexprt.cxx
+++ b/sc/source/filter/xml/xmlexprt.cxx
@@ -3493,7 +3493,7 @@ void ScXMLExport::WriteShapes(const ScMyCell& rMyCell)
bool bNeedsRestore = false;
SdrObject* pObj = GetSdrObjectFromXShape(rShape.xShape);
// Remember original geometry
- SdrObjGeoData* pGeoData = nullptr;
+ std::unique_ptr<SdrObjGeoData> pGeoData;
if (pObj)
pGeoData = pObj->GetGeoData();