diff options
Diffstat (limited to 'sot/source/sdstor/storage.cxx')
-rw-r--r-- | sot/source/sdstor/storage.cxx | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/sot/source/sdstor/storage.cxx b/sot/source/sdstor/storage.cxx index 1c3d5807726a..cba36422b3bc 100644 --- a/sot/source/sdstor/storage.cxx +++ b/sot/source/sdstor/storage.cxx @@ -57,7 +57,7 @@ SvLockBytesRef MakeLockBytes_Impl( const OUString & rName, StreamMode nMode ) } SotStorageStream::SotStorageStream( const OUString & rName, StreamMode nMode ) - : SvStream( MakeLockBytes_Impl( rName, nMode ) ) + : SvStream( MakeLockBytes_Impl( rName, nMode ).get() ) , pOwnStm( nullptr ) { if( nMode & StreamMode::WRITE ) @@ -466,7 +466,7 @@ SvMemoryStream * SotStorage::CreateMemoryStream() SvMemoryStream * pStm = nullptr; pStm = new SvMemoryStream( 0x8000, 0x8000 ); tools::SvRef<SotStorage> aStg = new SotStorage( *pStm ); - if( CopyTo( aStg ) ) + if( CopyTo( aStg.get() ) ) { aStg->Commit(); } |