sd/source/filter/ppt/pptin.cxx | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-)
New commits: commit 0c33e80bd0091c928be4209ff6210844ee5465a7 Author: Mike Kaganski <mike.kagan...@collabora.com> AuthorDate: Thu Nov 1 07:29:50 2018 +0100 Commit: Mike Kaganski <mike.kagan...@collabora.com> CommitDate: Thu Nov 1 09:27:14 2018 +0100 Limit the unique_ptr scope to get rid of .reset() Change-Id: I5d852f4d7f5de24ff49eaada6f53cd197ee2d0f7 Reviewed-on: https://gerrit.libreoffice.org/62715 Tested-by: Jenkins Reviewed-by: Mike Kaganski <mike.kagan...@collabora.com> diff --git a/sd/source/filter/ppt/pptin.cxx b/sd/source/filter/ppt/pptin.cxx index 5f19b38cdd2b..0d7842a6db8c 100644 --- a/sd/source/filter/ppt/pptin.cxx +++ b/sd/source/filter/ppt/pptin.cxx @@ -137,11 +137,10 @@ SdPPTImport::SdPPTImport( SdDrawDocument* pDocument, SvStream& rDocStream, SotSt pSummaryInformation.reset(); #endif - std::unique_ptr<SvStream> pCurrentUserStream(rStorage.OpenSotStream( "Current User", StreamMode::STD_READ )); - if( pCurrentUserStream ) + if (auto pCurrentUserStream + = std::unique_ptr<SvStream>(rStorage.OpenSotStream("Current User", StreamMode::STD_READ))) { ReadPptCurrentUserAtom(*pCurrentUserStream, maParam.aCurrentUserAtom); - pCurrentUserStream.reset(); } if( pDocument ) _______________________________________________ Libreoffice-commits mailing list libreoffice-comm...@lists.freedesktop.org https://lists.freedesktop.org/mailman/listinfo/libreoffice-commits