From 520891d058f9e936b9b8afb490b5a26c156008ef Mon Sep 17 00:00:00 2001 From: Takeshi Abe Date: Wed, 14 Dec 2011 00:03:52 +0900 Subject: catch exception by constant reference --- fpicker/source/office/fpsmartcontent.cxx | 10 +++++----- fpicker/source/office/iodlg.cxx | 2 +- fpicker/source/unx/kde_unx/UnxFPentry.cxx | 2 +- 3 files changed, 7 insertions(+), 7 deletions(-) (limited to 'fpicker') diff --git a/fpicker/source/office/fpsmartcontent.cxx b/fpicker/source/office/fpsmartcontent.cxx index acdd0697cba5..8fe9eaf1d598 100644 --- a/fpicker/source/office/fpsmartcontent.cxx +++ b/fpicker/source/office/fpsmartcontent.cxx @@ -168,10 +168,10 @@ namespace svt // is really valid (some UCP's only tell this when asking for properties, not upon // creation) } - catch( ContentCreationException& ) + catch( const ContentCreationException& ) { } - catch( Exception& ) + catch( const Exception& ) { OSL_FAIL( "SmartContent::bindTo: unexpected exception caught!" ); } @@ -217,7 +217,7 @@ namespace svt // from here on, we definately know that the content is valid m_eState = VALID; } - catch( Exception& ) + catch( const Exception& ) { // now we're definately invalid m_eState = INVALID; @@ -240,7 +240,7 @@ namespace svt // from here on, we definately know that the content is valid m_eState = VALID; } - catch( ::com::sun::star::uno::Exception& ) + catch( const ::com::sun::star::uno::Exception& ) { // now we're definately invalid m_eState = INVALID; @@ -303,7 +303,7 @@ namespace svt // now we're definately valid m_eState = VALID; } - catch( Exception& ) + catch( const Exception& ) { // now we're definately invalid m_eState = INVALID; diff --git a/fpicker/source/office/iodlg.cxx b/fpicker/source/office/iodlg.cxx index 6b0cf325bc4a..9f093530949b 100644 --- a/fpicker/source/office/iodlg.cxx +++ b/fpicker/source/office/iodlg.cxx @@ -257,7 +257,7 @@ namespace { bRealExtensions = !_pDialog->ContentIsFolder( aURL.GetMainURL( INetURLObject::NO_DECODE ) ); } - catch( ::com::sun::star::uno::Exception& ) + catch( const ::com::sun::star::uno::Exception& ) { DBG_WARNING( "Exception in lcl_autoUpdateFileExtension" ); } diff --git a/fpicker/source/unx/kde_unx/UnxFPentry.cxx b/fpicker/source/unx/kde_unx/UnxFPentry.cxx index 5533ab7c163d..0937742e66e5 100644 --- a/fpicker/source/unx/kde_unx/UnxFPentry.cxx +++ b/fpicker/source/unx/kde_unx/UnxFPentry.cxx @@ -67,7 +67,7 @@ sal_Bool SAL_CALL component_writeInfo( void* /*pServiceManager*/, void* pRegistr Reference< XRegistryKey > pXNewKey( static_cast< XRegistryKey* >( pRegistryKey ) ); pXNewKey->createKey( OUString(RTL_CONSTASCII_USTRINGPARAM( FILE_PICKER_REGKEY_NAME ) )); } - catch( InvalidRegistryException& ) + catch( const InvalidRegistryException& ) { OSL_FAIL( "InvalidRegistryException caught" ); bRetVal = sal_False; -- cgit