From 66335d3898547410f8ebf9963fb00d24352a56cc Mon Sep 17 00:00:00 2001 From: Stephan Bergmann Date: Thu, 7 May 2015 08:51:34 +0200 Subject: Remove unused SotStorage::OpenSotStream nStorageMode param Change-Id: Ieda14d984f1614056c701a50ce637ea6fe9620f3 --- sot/source/sdstor/storage.cxx | 7 ++----- 1 file changed, 2 insertions(+), 5 deletions(-) (limited to 'sot') diff --git a/sot/source/sdstor/storage.cxx b/sot/source/sdstor/storage.cxx index 8a540237d9ab..4c819a754a21 100644 --- a/sot/source/sdstor/storage.cxx +++ b/sot/source/sdstor/storage.cxx @@ -681,10 +681,8 @@ bool SotStorage::Commit() } SotStorageStream * SotStorage::OpenSotStream( const OUString & rEleName, - StreamMode nMode, - StorageMode nStorageMode ) + StreamMode nMode ) { - DBG_ASSERT( nStorageMode == StorageMode::Default, "StorageModes ignored" ); SotStorageStream * pStm = NULL; DBG_ASSERT( Owner(), "must be owner" ); if( m_pOwnStg ) @@ -693,8 +691,7 @@ SotStorageStream * SotStorage::OpenSotStream( const OUString & rEleName, // egal was kommt, nur exclusiv gestattet nMode |= StreamMode::SHARE_DENYALL; ErrCode nE = m_pOwnStg->GetError(); - BaseStorageStream * p = m_pOwnStg->OpenStream( rEleName, nMode, - !(nStorageMode & StorageMode::Transacted) ); + BaseStorageStream * p = m_pOwnStg->OpenStream( rEleName, nMode, true ); pStm = new SotStorageStream( p ); if( !nE ) -- cgit