summaryrefslogtreecommitdiff
path: root/drawinglayer/source/primitive3d/sdrlatheprimitive3d.cxx
diff options
context:
space:
mode:
Diffstat (limited to 'drawinglayer/source/primitive3d/sdrlatheprimitive3d.cxx')
-rw-r--r--drawinglayer/source/primitive3d/sdrlatheprimitive3d.cxx7
1 files changed, 1 insertions, 6 deletions
diff --git a/drawinglayer/source/primitive3d/sdrlatheprimitive3d.cxx b/drawinglayer/source/primitive3d/sdrlatheprimitive3d.cxx
index 0bffc5801b01..4f38141846ac 100644
--- a/drawinglayer/source/primitive3d/sdrlatheprimitive3d.cxx
+++ b/drawinglayer/source/primitive3d/sdrlatheprimitive3d.cxx
@@ -302,10 +302,6 @@ namespace drawinglayer
SdrLathePrimitive3D::~SdrLathePrimitive3D()
{
- if(mpLastRLGViewInformation)
- {
- delete mpLastRLGViewInformation;
- }
}
bool SdrLathePrimitive3D::operator==(const BasePrimitive3D& rPrimitive) const
@@ -355,8 +351,7 @@ namespace drawinglayer
// new one and clear current decompositiopn
SdrLathePrimitive3D* pThat = const_cast< SdrLathePrimitive3D* >(this);
pThat->setBuffered3DDecomposition(Primitive3DContainer());
- delete pThat->mpLastRLGViewInformation;
- pThat->mpLastRLGViewInformation = new geometry::ViewInformation3D(rViewInformation);
+ pThat->mpLastRLGViewInformation.reset( new geometry::ViewInformation3D(rViewInformation) );
}
}