diff options
author | Alex Ivan <alexnivan@yahoo.com> | 2013-04-15 18:56:10 +0300 |
---|---|---|
committer | Michael Meeks <michael.meeks@suse.com> | 2013-05-03 10:26:19 +0000 |
commit | da06166015689eca260c702602bef4cea58afbd3 (patch) | |
tree | 352d9a046ede0cfe36dbf172c76d3ac0a4738758 | |
parent | 91f7fabe4f5c34f8a67de0a1fcd2df1f0d0819c3 (diff) |
fix bug #60700 - de-crutify ODF files
Initialization of storage elements in Configuration folder is now
done in read-only mode. Modification does not affect these folders
in case of actual storage within them.
Only tested for example posted on bugzilla page.
Added open mode directly into function call.
Change-Id: Ib2b4ae1f4cab35f2c9cd1fc7081302e1231da7a4
Reviewed-on: https://gerrit.libreoffice.org/3401
Reviewed-by: Chris Sherlock <chris.sherlock79@gmail.com>
Reviewed-by: Michael Meeks <michael.meeks@suse.com>
Tested-by: Michael Meeks <michael.meeks@suse.com>
-rw-r--r-- | framework/source/uiconfiguration/uiconfigurationmanager.cxx | 4 |
1 files changed, 1 insertions, 3 deletions
diff --git a/framework/source/uiconfiguration/uiconfigurationmanager.cxx b/framework/source/uiconfiguration/uiconfigurationmanager.cxx index a2469e087cea..c32e2d90c452 100644 --- a/framework/source/uiconfiguration/uiconfigurationmanager.cxx +++ b/framework/source/uiconfiguration/uiconfigurationmanager.cxx @@ -540,8 +540,6 @@ void UIConfigurationManager::impl_Initialize() // Initialize the top-level structures with the storage data if ( m_xDocConfigStorage.is() ) { - long nModes = m_bReadOnly ? ElementModes::READ : ElementModes::READWRITE; - // Try to access our module sub folder for ( sal_Int16 i = 1; i < ::com::sun::star::ui::UIElementType::COUNT; i++ ) @@ -549,7 +547,7 @@ void UIConfigurationManager::impl_Initialize() Reference< XStorage > xElementTypeStorage; try { - xElementTypeStorage = m_xDocConfigStorage->openStorageElement( OUString::createFromAscii( UIELEMENTTYPENAMES[i] ), nModes ); + xElementTypeStorage = m_xDocConfigStorage->openStorageElement( OUString::createFromAscii( UIELEMENTTYPENAMES[i] ), ElementModes::READ ); } catch ( const com::sun::star::container::NoSuchElementException& ) { |