summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--include/sot/storage.hxx3
-rw-r--r--sot/source/sdstor/storage.cxx4
2 files changed, 3 insertions, 4 deletions
diff --git a/include/sot/storage.hxx b/include/sot/storage.hxx
index 1c6e4912d4e3..96ede56ae2ac 100644
--- a/include/sot/storage.hxx
+++ b/include/sot/storage.hxx
@@ -119,8 +119,7 @@ public:
StreamMode = STREAM_STD_READWRITE,
StorageMode = StorageMode::Default );
SotStorage( bool bUCBStorage, const OUString &,
- StreamMode = STREAM_STD_READWRITE,
- StorageMode = StorageMode::Default );
+ StreamMode = STREAM_STD_READWRITE );
SotStorage( BaseStorage * );
SotStorage( SvStream & rStm );
SotStorage( bool bUCBStorage, SvStream & rStm );
diff --git a/sot/source/sdstor/storage.cxx b/sot/source/sdstor/storage.cxx
index 4c819a754a21..df6b5d45197e 100644
--- a/sot/source/sdstor/storage.cxx
+++ b/sot/source/sdstor/storage.cxx
@@ -444,11 +444,11 @@ void SotStorage::CreateStorage( bool bForceUCBStorage, StreamMode nMode, Storage
SignAsRoot( m_pOwnStg->IsRoot() );
}
-SotStorage::SotStorage( bool bUCBStorage, const OUString & rName, StreamMode nMode, StorageMode nStorageMode )
+SotStorage::SotStorage( bool bUCBStorage, const OUString & rName, StreamMode nMode )
INIT_SotStorage()
{
m_aName = rName;
- CreateStorage( bUCBStorage, nMode, nStorageMode );
+ CreateStorage( bUCBStorage, nMode, StorageMode::Default );
if ( IsOLEStorage() )
m_nVersion = SOFFICE_FILEFORMAT_50;
}