summaryrefslogtreecommitdiff
path: root/sd
diff options
context:
space:
mode:
authorNoel Grandin <noel.grandin@collabora.co.uk>2018-10-30 14:25:39 +0200
committerNoel Grandin <noel.grandin@collabora.co.uk>2018-11-01 06:46:38 +0100
commit98718dc375df991afe8136a48b9ec11051f58054 (patch)
tree4d703fe22cb8c3829e5e7953344b84a0705754c0 /sd
parent432e2357780f48135198f86a6e4b45254e59db87 (diff)
loplugin:useuniqueptr in SdPPTImport
Change-Id: I843a2626c6351789bee3d68f0ab9debca9caa733 Reviewed-on: https://gerrit.libreoffice.org/62663 Tested-by: Jenkins Reviewed-by: Noel Grandin <noel.grandin@collabora.co.uk>
Diffstat (limited to 'sd')
-rw-r--r--sd/source/filter/ppt/pptin.cxx4
1 files changed, 2 insertions, 2 deletions
diff --git a/sd/source/filter/ppt/pptin.cxx b/sd/source/filter/ppt/pptin.cxx
index 4724a6f3df70..5f19b38cdd2b 100644
--- a/sd/source/filter/ppt/pptin.cxx
+++ b/sd/source/filter/ppt/pptin.cxx
@@ -137,11 +137,11 @@ SdPPTImport::SdPPTImport( SdDrawDocument* pDocument, SvStream& rDocStream, SotSt
pSummaryInformation.reset();
#endif
- SvStream* pCurrentUserStream = rStorage.OpenSotStream( "Current User", StreamMode::STD_READ );
+ std::unique_ptr<SvStream> pCurrentUserStream(rStorage.OpenSotStream( "Current User", StreamMode::STD_READ ));
if( pCurrentUserStream )
{
ReadPptCurrentUserAtom(*pCurrentUserStream, maParam.aCurrentUserAtom);
- delete pCurrentUserStream;
+ pCurrentUserStream.reset();
}
if( pDocument )