summaryrefslogtreecommitdiffstats
path: root/filter/source/msfilter/msdffimp.cxx
diff options
context:
space:
mode:
authorNoel Grandin <noel.grandin@collabora.co.uk>2018-02-28 15:35:29 +0200
committerNoel Grandin <noel.grandin@collabora.co.uk>2018-03-05 07:28:43 +0100
commitcab19696ce0a441e83ff1012de014265a6d4c471 (patch)
treec8d59e597601fde2d097318a22959bc633d6f227 /filter/source/msfilter/msdffimp.cxx
parentloplugin:useuniqueptr in ImplEESdrWriter (diff)
downloadcore-cab19696ce0a441e83ff1012de014265a6d4c471.tar.gz
core-cab19696ce0a441e83ff1012de014265a6d4c471.zip
loplugin:useuniqueptr in SvxMSDffManager
Change-Id: I2e3ef185d370ccacc0d1e99b5f9e732a829fdc55 Reviewed-on: https://gerrit.libreoffice.org/50693 Tested-by: Jenkins <ci@libreoffice.org> Reviewed-by: Noel Grandin <noel.grandin@collabora.co.uk>
Diffstat (limited to 'filter/source/msfilter/msdffimp.cxx')
-rw-r--r--filter/source/msfilter/msdffimp.cxx5
1 files changed, 1 insertions, 4 deletions
diff --git a/filter/source/msfilter/msdffimp.cxx b/filter/source/msfilter/msdffimp.cxx
index ec6311454449..5cf0b9f90d8b 100644
--- a/filter/source/msfilter/msdffimp.cxx
+++ b/filter/source/msfilter/msdffimp.cxx
@@ -4248,8 +4248,7 @@ SdrObject* SvxMSDffManager::ImportShape( const DffRecordHeader& rHd, SvStream& r
if ( aObjData.bOpt2 )
{
maShapeRecords.Current()->SeekToBegOfRecord( rSt );
- delete pSecPropSet;
- pSecPropSet = new DffPropertyReader( *this );
+ pSecPropSet.reset( new DffPropertyReader( *this ) );
pSecPropSet->ReadPropSet( rSt, nullptr );
}
@@ -5698,8 +5697,6 @@ SvxMSDffManager::SvxMSDffManager( SvStream& rStCtrl_, const OUString& rBaseURL )
SvxMSDffManager::~SvxMSDffManager()
{
- delete pSecPropSet;
- delete m_pBLIPInfos;
}
void SvxMSDffManager::InitSvxMSDffManager( sal_uInt32 nOffsDgg_, SvStream* pStData_, sal_uInt32 nOleConvFlags )