Kaydet (Commit) 7f3a9441 authored tarafından Lionel Elie Mamane's avatar Lionel Elie Mamane

Do not silently ignore exceptions when saving Libraries

It may lead to data loss
üst caee6852
......@@ -125,17 +125,10 @@ void SfxBasicManagerHolder::storeLibrariesToStorage( const Reference< XStorage >
{
OSL_PRECOND( isValid(), "SfxBasicManagerHolder::storeLibrariesToStorage: not initialized!" );
try
{
if ( mxBasicContainer.is() )
mxBasicContainer->storeLibrariesToStorage( _rxStorage );
if ( mxDialogContainer.is() )
mxDialogContainer->storeLibrariesToStorage( _rxStorage );
}
catch( const Exception& )
{
DBG_UNHANDLED_EXCEPTION();
}
if ( mxBasicContainer.is() )
mxBasicContainer->storeLibrariesToStorage( _rxStorage );
if ( mxDialogContainer.is() )
mxDialogContainer->storeLibrariesToStorage( _rxStorage );
}
Reference< XLibraryContainer > SfxBasicManagerHolder::getLibraryContainer( ContainerType _eType )
......
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