diff options
Diffstat (limited to 'desktop/source')
-rw-r--r-- | desktop/source/migration/services/wordbookmigration.cxx | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/desktop/source/migration/services/wordbookmigration.cxx b/desktop/source/migration/services/wordbookmigration.cxx index 3a0f4bd1c165..683813a9df48 100644 --- a/desktop/source/migration/services/wordbookmigration.cxx +++ b/desktop/source/migration/services/wordbookmigration.cxx @@ -107,7 +107,7 @@ namespace migration bool IsUserWordbook( const OUString& rFile ) { bool bRet = false; - SvStream* pStream = ::utl::UcbStreamHelper::CreateStream( rFile, StreamMode::STD_READ ); + std::unique_ptr<SvStream> pStream = ::utl::UcbStreamHelper::CreateStream( rFile, StreamMode::STD_READ ); if ( pStream && !pStream->GetError() ) { static const sal_Char* const pVerOOo7 = "OOoUserDict1"; @@ -137,7 +137,6 @@ bool IsUserWordbook( const OUString& rFile ) } } - delete pStream; return bRet; } |