summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorXisco Fauli <anistenis@gmail.com>2016-06-06 00:35:58 +0200
committerNoel Grandin <noelgrandin@gmail.com>2016-06-07 06:59:32 +0000
commitca1d1c41f1dd4702bdffb1936b85bb6ac617219a (patch)
tree4321f82042d6a2502e37b575f8cd31f5acbb08be
parent082d46908533dc254018fa8f5d517b025bb2fca4 (diff)
tdf#89329: use unique_ptr for pImpl in float3d
Change-Id: I80eb64cd91651f521fb6dba6bef22dc1d77188e1 Reviewed-on: https://gerrit.libreoffice.org/25937 Tested-by: Jenkins <ci@libreoffice.org> Reviewed-by: Noel Grandin <noelgrandin@gmail.com>
-rw-r--r--include/svx/float3d.hxx2
-rw-r--r--svx/source/engine3d/float3d.cxx2
2 files changed, 2 insertions, 2 deletions
diff --git a/include/svx/float3d.hxx b/include/svx/float3d.hxx
index 6f22ef7d7d40..ecbeb4834e30 100644
--- a/include/svx/float3d.hxx
+++ b/include/svx/float3d.hxx
@@ -179,7 +179,7 @@ private:
SvxConvertTo3DItem* pConvertTo3DItem;
SvxConvertTo3DItem* pConvertTo3DLatheItem;
- Svx3DWinImpl* mpImpl;
+ std::unique_ptr<Svx3DWinImpl> mpImpl;
SfxMapUnit ePoolUnit;
FieldUnit eFUnit;
diff --git a/svx/source/engine3d/float3d.cxx b/svx/source/engine3d/float3d.cxx
index bd103da8e1d0..d5e1304eec91 100644
--- a/svx/source/engine3d/float3d.cxx
+++ b/svx/source/engine3d/float3d.cxx
@@ -336,7 +336,7 @@ void Svx3DWin::dispose()
delete mpRemember2DAttributes;
- delete mpImpl;
+ mpImpl.reset();
m_pBtnGeo.clear();
m_pBtnRepresentation.clear();