diff options
author | Noel Grandin <noel.grandin@collabora.co.uk> | 2018-01-16 14:07:11 +0200 |
---|---|---|
committer | Noel Grandin <noel.grandin@collabora.co.uk> | 2018-01-19 08:58:46 +0200 |
commit | f9894d68ea67f5fc5810bfb4ece5d9af0c16749a (patch) | |
tree | d0b5a8e91c01db812293034d71ed4484c4eeb229 /drawinglayer | |
parent | 2b63eea0d4e43ffa23c889519011c870a9a55e58 (diff) |
loplugin:useuniqueptr in SvgRadialAtomPrimitive2D
Change-Id: I00d1772732075848b25eb34d7c4b0386551c7e5f
Diffstat (limited to 'drawinglayer')
-rw-r--r-- | drawinglayer/source/primitive2d/svggradientprimitive2d.cxx | 7 |
1 files changed, 1 insertions, 6 deletions
diff --git a/drawinglayer/source/primitive2d/svggradientprimitive2d.cxx b/drawinglayer/source/primitive2d/svggradientprimitive2d.cxx index 54b750d3df14..0197b4199fb2 100644 --- a/drawinglayer/source/primitive2d/svggradientprimitive2d.cxx +++ b/drawinglayer/source/primitive2d/svggradientprimitive2d.cxx @@ -1049,7 +1049,7 @@ namespace drawinglayer // check and evtl. set translations if(!rTranslateA.equal(rTranslateB)) { - mpTranslate = new VectorPair(rTranslateA, rTranslateB); + mpTranslate.reset( new VectorPair(rTranslateA, rTranslateB) ); } // scale A and B have to be positive @@ -1093,11 +1093,6 @@ namespace drawinglayer SvgRadialAtomPrimitive2D::~SvgRadialAtomPrimitive2D() { - if(mpTranslate) - { - delete mpTranslate; - mpTranslate = nullptr; - } } bool SvgRadialAtomPrimitive2D::operator==(const BasePrimitive2D& rPrimitive) const |