Kaydet (Commit) 98718dc3 authored tarafından Noel Grandin's avatar Noel Grandin

loplugin:useuniqueptr in SdPPTImport

Change-Id: I843a2626c6351789bee3d68f0ab9debca9caa733
Reviewed-on: https://gerrit.libreoffice.org/62663
Tested-by: Jenkins
Reviewed-by: 's avatarNoel Grandin <noel.grandin@collabora.co.uk>
üst 432e2357
...@@ -137,11 +137,11 @@ SdPPTImport::SdPPTImport( SdDrawDocument* pDocument, SvStream& rDocStream, SotSt ...@@ -137,11 +137,11 @@ SdPPTImport::SdPPTImport( SdDrawDocument* pDocument, SvStream& rDocStream, SotSt
pSummaryInformation.reset(); pSummaryInformation.reset();
#endif #endif
SvStream* pCurrentUserStream = rStorage.OpenSotStream( "Current User", StreamMode::STD_READ ); std::unique_ptr<SvStream> pCurrentUserStream(rStorage.OpenSotStream( "Current User", StreamMode::STD_READ ));
if( pCurrentUserStream ) if( pCurrentUserStream )
{ {
ReadPptCurrentUserAtom(*pCurrentUserStream, maParam.aCurrentUserAtom); ReadPptCurrentUserAtom(*pCurrentUserStream, maParam.aCurrentUserAtom);
delete pCurrentUserStream; pCurrentUserStream.reset();
} }
if( pDocument ) if( pDocument )
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment