summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorLionel Elie Mamane <lionel.mamane@gestman.lu>2011-08-15 14:02:25 +0200
committerNoel Power <noel.power@novell.com>2011-08-17 14:04:44 +0100
commit4252f25461096964205c550d483b4c13be2c44f3 (patch)
treeca3cfa6ea2bff7709fe75ffa9c7a5b7325cd03e3
parent8bae371ca9602ffe00e51448e710e2f5cd018e54 (diff)
Janitorial: deduplicate code; no behaviour change
-rw-r--r--basic/source/uno/namecont.cxx4
1 files changed, 1 insertions, 3 deletions
diff --git a/basic/source/uno/namecont.cxx b/basic/source/uno/namecont.cxx
index 444a4edd24..92225a496f 100644
--- a/basic/source/uno/namecont.cxx
+++ b/basic/source/uno/namecont.cxx
@@ -1806,10 +1806,8 @@ void SfxLibraryContainer::storeLibraries_Impl( const uno::Reference< embed::XSto
// open the source storage which might be used to copy yet-unmodified libraries
try
{
- if ( mxStorage->hasByName( maLibrariesDir ) )
+ if ( mxStorage->hasByName( maLibrariesDir ) || bInplaceStorage )
xSourceLibrariesStor = mxStorage->openStorageElement( maLibrariesDir, bInplaceStorage ? embed::ElementModes::READWRITE : embed::ElementModes::READ );
- else if ( bInplaceStorage )
- xSourceLibrariesStor = mxStorage->openStorageElement( maLibrariesDir, embed::ElementModes::READWRITE );
}
catch( const uno::Exception& )
{