Kaydet (Commit) e00c67ba authored tarafından Lionel Elie Mamane's avatar Lionel Elie Mamane Kaydeden (comit) Noel Power

Janitorial: deduplicate code; no behaviour change

üst 6f7bd90e
...@@ -1849,10 +1849,8 @@ void SfxLibraryContainer::storeLibraries_Impl( const uno::Reference< embed::XSto ...@@ -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 // open the source storage which might be used to copy yet-unmodified libraries
try try
{ {
if ( mxStorage->hasByName( maLibrariesDir ) ) if ( mxStorage->hasByName( maLibrariesDir ) || bInplaceStorage )
xSourceLibrariesStor = mxStorage->openStorageElement( maLibrariesDir, bInplaceStorage ? embed::ElementModes::READWRITE : embed::ElementModes::READ ); 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& ) catch( const uno::Exception& )
{ {
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment