summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--include/sot/storage.hxx2
-rw-r--r--sot/source/sdstor/storage.cxx4
-rw-r--r--sw/source/filter/ww8/ww8par.cxx2
3 files changed, 4 insertions, 4 deletions
diff --git a/include/sot/storage.hxx b/include/sot/storage.hxx
index 96ede56ae2ac..0116453a3135 100644
--- a/include/sot/storage.hxx
+++ b/include/sot/storage.hxx
@@ -117,7 +117,7 @@ protected:
public:
SotStorage( const OUString &,
StreamMode = STREAM_STD_READWRITE,
- StorageMode = StorageMode::Default );
+ bool transacted = false );
SotStorage( bool bUCBStorage, const OUString &,
StreamMode = STREAM_STD_READWRITE );
SotStorage( BaseStorage * );
diff --git a/sot/source/sdstor/storage.cxx b/sot/source/sdstor/storage.cxx
index df6b5d45197e..caa6c2e34d63 100644
--- a/sot/source/sdstor/storage.cxx
+++ b/sot/source/sdstor/storage.cxx
@@ -333,11 +333,11 @@ SotStorage::SotStorage()
#include <com/sun/star/ucb/XCommandEnvironment.hpp>
#include <ucbhelper/content.hxx>
-SotStorage::SotStorage( const OUString & rName, StreamMode nMode, StorageMode nStorageMode )
+SotStorage::SotStorage( const OUString & rName, StreamMode nMode, bool transacted )
INIT_SotStorage()
{
m_aName = rName; // Namen merken
- CreateStorage( true, nMode, nStorageMode );
+ CreateStorage( true, nMode, transacted ? StorageMode::Transacted : StorageMode::Default );
if ( IsOLEStorage() )
m_nVersion = SOFFICE_FILEFORMAT_50;
}
diff --git a/sw/source/filter/ww8/ww8par.cxx b/sw/source/filter/ww8/ww8par.cxx
index e6b7c66245f6..ebf8095e6e37 100644
--- a/sw/source/filter/ww8/ww8par.cxx
+++ b/sw/source/filter/ww8/ww8par.cxx
@@ -4842,7 +4842,7 @@ bool SwWW8ImplReader::ReadGlobalTemplateSettings( const OUString& sCreatedFrom,
if ( !aURL.endsWithIgnoreAsciiCase( ".dot" ) || ( !sCreatedFrom.isEmpty() && sCreatedFrom.equals( aURL ) ) )
continue; // don't try and read the same document as ourselves
- tools::SvRef<SotStorage> rRoot = new SotStorage( aURL, STREAM_STD_READWRITE, StorageMode::Transacted );
+ tools::SvRef<SotStorage> rRoot = new SotStorage( aURL, STREAM_STD_READWRITE, true );
BasicProjImportHelper aBasicImporter( *m_pDocShell );
// Import vba via oox filter