diff options
author | Takeshi Abe <tabe@fixedpoint.jp> | 2011-12-21 21:57:16 +0900 |
---|---|---|
committer | Takeshi Abe <tabe@fixedpoint.jp> | 2011-12-21 21:57:54 +0900 |
commit | 7958f8244cc3e554b1339b14c7e589dfcbb0526c (patch) | |
tree | 8654a25c98b3338cc9f8c4377c89d4dce06387ad /pyuno/source/module/pyuno_adapter.cxx | |
parent | 7167559379cd44e0160ba20c69cbb6954887e32b (diff) |
catch exception by constant reference
Diffstat (limited to 'pyuno/source/module/pyuno_adapter.cxx')
-rw-r--r-- | pyuno/source/module/pyuno_adapter.cxx | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/pyuno/source/module/pyuno_adapter.cxx b/pyuno/source/module/pyuno_adapter.cxx index df3f9fae5443..cfce2212b74f 100644 --- a/pyuno/source/module/pyuno_adapter.cxx +++ b/pyuno/source/module/pyuno_adapter.cxx @@ -321,7 +321,7 @@ Any Adapter::invoke( const OUString &aFunctionName, } } - catch(InvocationTargetException & e ) + catch( const InvocationTargetException & e ) { if( isLog( cargo, LogLevel::CALL ) ) { @@ -332,7 +332,7 @@ Any Adapter::invoke( const OUString &aFunctionName, } throw; } - catch( RuntimeException & e ) + catch( const RuntimeException & e ) { if( cargo && isLog( cargo, LogLevel::CALL ) ) { @@ -342,7 +342,7 @@ Any Adapter::invoke( const OUString &aFunctionName, } throw; } - catch( CannotConvertException & e ) + catch( const CannotConvertException & e ) { if( isLog( cargo, LogLevel::CALL ) ) { @@ -352,7 +352,7 @@ Any Adapter::invoke( const OUString &aFunctionName, } throw; } - catch( IllegalArgumentException & e ) + catch( const IllegalArgumentException & e ) { if( isLog( cargo, LogLevel::CALL ) ) { @@ -387,7 +387,7 @@ void Adapter::setValue( const OUString & aPropertyName, const Any & value ) raiseInvocationTargetExceptionWhenNeeded( runtime); } - catch( IllegalArgumentException & exc ) + catch( const IllegalArgumentException & exc ) { throw InvocationTargetException( exc.Message, *this, com::sun::star::uno::makeAny( exc ) ); } |