diff options
author | Noel Grandin <noel.grandin@collabora.co.uk> | 2017-01-18 09:46:39 +0200 |
---|---|---|
committer | Noel Grandin <noel.grandin@collabora.co.uk> | 2017-01-18 11:19:20 +0000 |
commit | 2266b436698f28f3869a025f5aa4a356da04a4f1 (patch) | |
tree | a44156984d68252fc5ca4d0088ea5f0a37546e1f /sw/source/filter/ww8/ww8toolbar.cxx | |
parent | feb3b3dbda7af2ba7f2d36dd9174a30912d9cf63 (diff) |
new loplugin: useuniqueptr: sw part 2
Change-Id: Ifa901f75072d8474d8a97ca57c2b5b48d8c6b79d
Reviewed-on: https://gerrit.libreoffice.org/33250
Tested-by: Jenkins <ci@libreoffice.org>
Reviewed-by: Noel Grandin <noel.grandin@collabora.co.uk>
Diffstat (limited to 'sw/source/filter/ww8/ww8toolbar.cxx')
-rw-r--r-- | sw/source/filter/ww8/ww8toolbar.cxx | 6 |
1 files changed, 2 insertions, 4 deletions
diff --git a/sw/source/filter/ww8/ww8toolbar.cxx b/sw/source/filter/ww8/ww8toolbar.cxx index a0dce1d2c8ab..ae317235d0aa 100644 --- a/sw/source/filter/ww8/ww8toolbar.cxx +++ b/sw/source/filter/ww8/ww8toolbar.cxx @@ -981,7 +981,6 @@ PlfAcd::PlfAcd() : PlfAcd::~PlfAcd() { - delete[] rgacd; } bool PlfAcd::Read( SvStream &rS) @@ -1000,7 +999,7 @@ bool PlfAcd::Read( SvStream &rS) } if (iMac) { - rgacd = new Acd[ iMac ]; + rgacd.reset( new Acd[ iMac ] ); for ( sal_Int32 index = 0; index < iMac; ++index ) { if ( !rgacd[ index ].Read( rS ) ) @@ -1033,7 +1032,6 @@ PlfKme::PlfKme() : PlfKme::~PlfKme() { - delete[] rgkme; } bool PlfKme::Read(SvStream &rS) @@ -1044,7 +1042,7 @@ bool PlfKme::Read(SvStream &rS) rS.ReadInt32( iMac ); if ( iMac ) { - rgkme = new Kme[ iMac ]; + rgkme.reset( new Kme[ iMac ] ); for( sal_Int32 index=0; index<iMac; ++index ) { if ( !rgkme[ index ].Read( rS ) ) |