diff options
author | Takeshi Abe <tabe@fixedpoint.jp> | 2011-12-14 00:03:52 +0900 |
---|---|---|
committer | Takeshi Abe <tabe@fixedpoint.jp> | 2011-12-14 01:31:17 +0900 |
commit | 520891d058f9e936b9b8afb490b5a26c156008ef (patch) | |
tree | 6cb8ebad42c3504cb3e26249ba3458afb02a9922 /fpicker | |
parent | 4c1c531435e1bdb151d45626648486062012cbaa (diff) |
catch exception by constant reference
Diffstat (limited to 'fpicker')
-rw-r--r-- | fpicker/source/office/fpsmartcontent.cxx | 10 | ||||
-rw-r--r-- | fpicker/source/office/iodlg.cxx | 2 | ||||
-rw-r--r-- | fpicker/source/unx/kde_unx/UnxFPentry.cxx | 2 |
3 files changed, 7 insertions, 7 deletions
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; |