diff options
author | Takeshi Abe <tabe@fixedpoint.jp> | 2012-01-06 00:03:58 +0900 |
---|---|---|
committer | Takeshi Abe <tabe@fixedpoint.jp> | 2012-01-06 00:22:51 +0900 |
commit | 5493951893ea90b330d5280bc171a60ff46fa396 (patch) | |
tree | 97dee1e30575dc05959acaa2cec6da9b791022d7 /svx/source/svdraw/svdoole2.cxx | |
parent | 1bae43a3d75d9be75b027dab2eff12695ad4f353 (diff) |
catch exception by constant reference
Diffstat (limited to 'svx/source/svdraw/svdoole2.cxx')
-rw-r--r-- | svx/source/svdraw/svdoole2.cxx | 24 |
1 files changed, 8 insertions, 16 deletions
diff --git a/svx/source/svdraw/svdoole2.cxx b/svx/source/svdraw/svdoole2.cxx index db0322d0717e..904d590607f4 100644 --- a/svx/source/svdraw/svdoole2.cxx +++ b/svx/source/svdraw/svdoole2.cxx @@ -919,9 +919,8 @@ sal_Bool SdrOle2Obj::UpdateLinkURL_Impl() if ( nCurState != embed::EmbedStates::LOADED ) xObjRef->changeState( nCurState ); } - catch( ::com::sun::star::uno::Exception& e ) + catch( ::com::sun::star::uno::Exception& ) { - (void)e; OSL_FAIL( (OString("SdrOle2Obj::UpdateLinkURL_Impl(), " "exception caught: ") + @@ -962,9 +961,8 @@ void SdrOle2Obj::BreakFileLink_Impl() DisconnectFileLink_Impl(); mpImpl->maLinkURL = String(); } - catch( ::com::sun::star::uno::Exception& e ) + catch( ::com::sun::star::uno::Exception& ) { - (void)e; OSL_FAIL( (OString("SdrOle2Obj::BreakFileLink_Impl(), " "exception caught: ") + @@ -1014,9 +1012,8 @@ void SdrOle2Obj::CheckFileLink_Impl() } } } - catch( ::com::sun::star::uno::Exception& e ) + catch( ::com::sun::star::uno::Exception& ) { - (void)e; OSL_FAIL( (OString("SdrOle2Obj::CheckFileLink_Impl(), " "exception caught: ") + @@ -1099,9 +1096,8 @@ void SdrOle2Obj::Connect_Impl() } } - catch( ::com::sun::star::uno::Exception& e ) + catch( ::com::sun::star::uno::Exception& ) { - (void)e; OSL_FAIL( (OString("SdrOle2Obj::Connect_Impl(), " "exception caught: ") + @@ -1187,9 +1183,8 @@ void SdrOle2Obj::RemoveListeners_Impl() } } } - catch( ::com::sun::star::uno::Exception& e ) + catch( ::com::sun::star::uno::Exception& ) { - (void)e; OSL_FAIL( (OString("SdrOle2Obj::RemoveListeners_Impl(), " "exception caught: ") + @@ -1270,9 +1265,8 @@ void SdrOle2Obj::Disconnect_Impl() GetSdrGlobalData().GetOLEObjCache().RemoveObj(this); } } - catch( ::com::sun::star::uno::Exception& e ) + catch( ::com::sun::star::uno::Exception& ) { - (void)e; OSL_FAIL( (OString("SdrOle2Obj::Disconnect_Impl(), " "exception caught: ") + @@ -1328,9 +1322,8 @@ void SdrOle2Obj::SetModel(SdrModel* pNewModel) } DBG_ASSERT( aTmp.getLength(), "Copying embedded object failed!" ); } - catch( ::com::sun::star::uno::Exception& e ) + catch( ::com::sun::star::uno::Exception& ) { - (void)e; OSL_FAIL( (OString("SdrOle2Obj::SetModel(), " "exception caught: ") + @@ -1886,9 +1879,8 @@ sal_Bool SdrOle2Obj::Unload( const uno::Reference< embed::XEmbeddedObject >& xOb xObj->changeState( embed::EmbedStates::LOADED ); bResult = sal_True; } - catch( ::com::sun::star::uno::Exception& e ) + catch( ::com::sun::star::uno::Exception& ) { - (void)e; OSL_FAIL( (OString("SdrOle2Obj::Unload=(), " "exception caught: ") + |