diff options
Diffstat (limited to 'sd/source/filter/ppt/pptin.cxx')
-rw-r--r-- | sd/source/filter/ppt/pptin.cxx | 5 |
1 files changed, 2 insertions, 3 deletions
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 ) |