From 93a9f170be76965ec004b200ac939e55e8382ca0 Mon Sep 17 00:00:00 2001 From: Takeshi Abe Date: Sat, 10 Dec 2011 22:14:57 +0900 Subject: catch exception by constant reference --- eventattacher/source/eventattacher.cxx | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) (limited to 'eventattacher/source') diff --git a/eventattacher/source/eventattacher.cxx b/eventattacher/source/eventattacher.cxx index c4c187af7619..fd8fd9a3531f 100644 --- a/eventattacher/source/eventattacher.cxx +++ b/eventattacher/source/eventattacher.cxx @@ -563,7 +563,7 @@ Any SAL_CALL FilterAllListenerImpl::approveFiring( const AllEventObject& Event ) convertToEventReturn( aRet, aRetType ); } } - catch( CannotConvertException& e ) + catch( const CannotConvertException& e ) { throw InvocationTargetException( OUString(), Reference< XInterface >(), Any(&e, ::getCppuType( (CannotConvertException*)0)) ); } @@ -683,7 +683,7 @@ Reference EventAttacherImpl::attachListenerForTarget( { rxMethod->invoke( aObject, args ); } - catch( InvocationTargetException& ) + catch( const InvocationTargetException& ) { throw IntrospectionException(); } @@ -710,7 +710,7 @@ Reference EventAttacherImpl::attachListenerForTarget( { rxMethod->invoke( aObject, args ); } - catch( InvocationTargetException& ) + catch( const InvocationTargetException& ) { throw IntrospectionException(); } @@ -860,7 +860,7 @@ void EventAttacherImpl::removeListener { rxMethod->invoke( aObjAny, args ); } - catch( InvocationTargetException& ) + catch( const InvocationTargetException& ) { throw IntrospectionException(); } @@ -885,7 +885,7 @@ void EventAttacherImpl::removeListener { rxMethod->invoke( aObjAny, args ); } - catch( InvocationTargetException& ) + catch( const InvocationTargetException& ) { throw IntrospectionException(); } -- cgit