summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--include/sot/storage.hxx3
-rw-r--r--sot/source/sdstor/storage.cxx9
2 files changed, 2 insertions, 10 deletions
diff --git a/include/sot/storage.hxx b/include/sot/storage.hxx
index 45593de08c0b..23ae8d0c7b00 100644
--- a/include/sot/storage.hxx
+++ b/include/sot/storage.hxx
@@ -67,8 +67,7 @@ protected:
virtual ~SotStorageStream();
public:
SotStorageStream( const OUString &,
- StreamMode = STREAM_STD_READWRITE,
- StorageMode = StorageMode::Default );
+ StreamMode = STREAM_STD_READWRITE );
SotStorageStream( BaseStorageStream *pStm );
SotStorageStream();
diff --git a/sot/source/sdstor/storage.cxx b/sot/source/sdstor/storage.cxx
index 7f204e6ac30d..8a540237d9ab 100644
--- a/sot/source/sdstor/storage.cxx
+++ b/sot/source/sdstor/storage.cxx
@@ -75,12 +75,7 @@ SvLockBytesRef MakeLockBytes_Impl( const OUString & rName, StreamMode nMode )
return xLB;
}
-SotStorageStream::SotStorageStream( const OUString & rName, StreamMode nMode,
- StorageMode
- #ifdef DBG_UTIL
- nStorageMode
- #endif
- )
+SotStorageStream::SotStorageStream( const OUString & rName, StreamMode nMode )
: SvStream( MakeLockBytes_Impl( rName, nMode ) )
, pOwnStm( NULL )
{
@@ -88,8 +83,6 @@ SotStorageStream::SotStorageStream( const OUString & rName, StreamMode nMode,
bIsWritable = true;
else
bIsWritable = false;
-
- DBG_ASSERT( nStorageMode == StorageMode::Default, "StorageModes ignored" );
}
SotStorageStream::SotStorageStream( BaseStorageStream * pStm )