diff options
author | Noel Grandin <noel.grandin@collabora.co.uk> | 2017-07-15 00:49:33 +0200 |
---|---|---|
committer | Thorsten Behrens <Thorsten.Behrens@CIB.de> | 2017-07-15 11:01:31 +0200 |
commit | 96775f3e3c33a92722ee0595fb29e987029ad646 (patch) | |
tree | 14f9523f729399bbc92ccafa8e81945d54dfa52d /drawinglayer/source/tools/emfppath.cxx | |
parent | a2e25af0ec427d9c86228ecec349ea2d303abbe1 (diff) |
loplugin:useuniqueptr in basic..cppcanvas
Porting over b0e05f9ade9e93c569c6a62c59ac1819e615f27b to copies
of emfpp*.[ch]xx
Change-Id: I059d2cc371f24ce3d43fc2e255b1dc1c227cf555
Diffstat (limited to 'drawinglayer/source/tools/emfppath.cxx')
-rw-r--r-- | drawinglayer/source/tools/emfppath.cxx | 8 |
1 files changed, 2 insertions, 6 deletions
diff --git a/drawinglayer/source/tools/emfppath.cxx b/drawinglayer/source/tools/emfppath.cxx index 64b3411e4b49..d68fd425994c 100644 --- a/drawinglayer/source/tools/emfppath.cxx +++ b/drawinglayer/source/tools/emfppath.cxx @@ -50,18 +50,14 @@ namespace emfplushelper } nPoints = _nPoints; - pPoints = new float [nPoints*2]; + pPoints.reset( new float [nPoints*2] ); if (!bLines) - pPointTypes = new sal_uInt8 [_nPoints]; - else - pPointTypes = nullptr; + pPointTypes.reset( new sal_uInt8 [_nPoints] ); } EMFPPath::~EMFPPath () { - delete [] pPoints; - delete [] pPointTypes; } // TODO: remove rR argument when debug code is no longer needed |