summaryrefslogtreecommitdiff
path: root/sot/source
diff options
context:
space:
mode:
authorStephan Bergmann <sbergman@redhat.com>2014-09-15 17:44:24 +0200
committerStephan Bergmann <sbergman@redhat.com>2014-09-15 18:22:37 +0200
commit03043589c3e62561fab1f28dcec470ddd22df7f4 (patch)
treee54fa15c5c84d4a3f674efb655e184b1edd7a6db /sot/source
parentca87db7da4149118f5b0fb4e67c87a708ccf1b79 (diff)
Clean up StorageMode parameter of SotStorage::OpenSotStorage
...which was only used to transport either STORAGE_TRANSACTED or sal_False (i.e., 0, meaning "not STORAGE_TRANSACTED"). Change-Id: I25a894262bbefdb6c0634309bccfb1e56dad7d88
Diffstat (limited to 'sot/source')
-rw-r--r--sot/source/sdstor/storage.cxx5
1 files changed, 2 insertions, 3 deletions
diff --git a/sot/source/sdstor/storage.cxx b/sot/source/sdstor/storage.cxx
index 9cc42045f21f..0294a6ca4ea4 100644
--- a/sot/source/sdstor/storage.cxx
+++ b/sot/source/sdstor/storage.cxx
@@ -770,15 +770,14 @@ SotStorageStream * SotStorage::OpenSotStream( const OUString & rEleName,
SotStorage * SotStorage::OpenSotStorage( const OUString & rEleName,
StreamMode nMode,
- StorageMode nStorageMode )
+ bool transacted )
{
DBG_ASSERT( Owner(), "must be owner" );
if( m_pOwnStg )
{
nMode |= STREAM_SHARE_DENYALL;
ErrCode nE = m_pOwnStg->GetError();
- BaseStorage * p = m_pOwnStg->OpenStorage( rEleName, nMode,
- (nStorageMode & STORAGE_TRANSACTED) ? false : true );
+ BaseStorage * p = m_pOwnStg->OpenStorage(rEleName, nMode, !transacted);
if( p )
{
SotStorage * pStor = new SotStorage( p );