From e1a1091d0ae61ba46c6d063a92db0b7d1ce65942 Mon Sep 17 00:00:00 2001 From: Takeshi Abe Date: Wed, 24 Aug 2011 11:22:56 +0900 Subject: catch ignored exceptions by const reference --- basic/source/uno/dlgcont.cxx | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) (limited to 'basic/source/uno/dlgcont.cxx') diff --git a/basic/source/uno/dlgcont.cxx b/basic/source/uno/dlgcont.cxx index 6378a9532823..7df1dd0e2727 100644 --- a/basic/source/uno/dlgcont.cxx +++ b/basic/source/uno/dlgcont.cxx @@ -247,7 +247,7 @@ void SfxDialogLibraryContainer::storeLibrariesToStorage( const uno::Reference< e mbOasis2OOoFormat = sal_True; } } - catch ( Exception& ) + catch (const Exception& ) { // if we cannot get the version then the // Oasis2OOoTransformer will not be used @@ -354,7 +354,7 @@ Any SAL_CALL SfxDialogLibraryContainer::importLibraryElement { xInput = mxSFI->openFileRead( aFile ); } - catch( Exception& ) + catch(const Exception& ) //catch( Exception& e ) { // TODO: @@ -378,7 +378,7 @@ Any SAL_CALL SfxDialogLibraryContainer::importLibraryElement xParser->setDocumentHandler( ::xmlscript::importDialogModel( xDialogModel, xContext, mxOwnerDocument ) ); xParser->parseStream( source ); } - catch( Exception& ) + catch(const Exception& ) { OSL_FAIL( "Parsing error\n" ); SfxErrorContext aEc( ERRCTX_SFX_LOADBASIC, aFile ); @@ -450,7 +450,7 @@ Reference< ::com::sun::star::resource::XStringResourcePersistence > aArgs[0] <<= xLibraryStor; } - catch( uno::Exception& ) + catch(const uno::Exception& ) { // TODO: Error handling? return xRet; @@ -529,7 +529,7 @@ void SfxDialogLibraryContainer::onNewRootStorage() if( xStringResourceWithStorage.is() ) xStringResourceWithStorage->setStorage( xLibraryStor ); } - catch( uno::Exception& ) + catch(const uno::Exception& ) { // TODO: Error handling? } -- cgit