diff options
author | Lionel Elie Mamane <lionel.mamane@gestman.lu> | 2011-08-15 14:02:25 +0200 |
---|---|---|
committer | Noel Power <noel.power@novell.com> | 2011-08-17 14:10:20 +0100 |
commit | e00c67ba62b1f88399090352008d4840d52ca7e9 (patch) | |
tree | a71d5853be9e3f702c1c7e55b23bb348d5b3d337 /basic | |
parent | 6f7bd90edcb68a67b63094eae6dae6f144edd5cc (diff) |
Janitorial: deduplicate code; no behaviour change
Diffstat (limited to 'basic')
-rw-r--r-- | basic/source/uno/namecont.cxx | 4 |
1 files changed, 1 insertions, 3 deletions
diff --git a/basic/source/uno/namecont.cxx b/basic/source/uno/namecont.cxx index a27c36db0f00..cf2e0b6df778 100644 --- a/basic/source/uno/namecont.cxx +++ b/basic/source/uno/namecont.cxx @@ -1849,10 +1849,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& ) { |