summaryrefslogtreecommitdiff
path: root/toolkit
diff options
context:
space:
mode:
authorCaolán McNamara <caolanm@redhat.com>2011-06-16 01:10:39 +0100
committerCaolán McNamara <caolanm@redhat.com>2011-06-16 09:16:08 +0100
commitaa6d94be39957752a7e83425d17a31c1eeefc8ec (patch)
treeb8cd384736d9097df76279ccace0e4f958be5b24 /toolkit
parent2fc686889c6ba0e38048d861ad6e1c13a72f9aab (diff)
catch by const reference
Diffstat (limited to 'toolkit')
-rw-r--r--toolkit/inc/toolkit/helper/macros.hxx12
1 files changed, 6 insertions, 6 deletions
diff --git a/toolkit/inc/toolkit/helper/macros.hxx b/toolkit/inc/toolkit/helper/macros.hxx
index 255530a32628..7275b8a7ffd3 100644
--- a/toolkit/inc/toolkit/helper/macros.hxx
+++ b/toolkit/inc/toolkit/helper/macros.hxx
@@ -189,13 +189,13 @@ void ClassName::disposing( const ::com::sun::star::lang::EventObject& ) throw(::
{ \
xListener->MethodName( aMulti, aMulti2 ); \
} \
- catch( ::com::sun::star::lang::DisposedException e ) \
+ catch(const ::com::sun::star::lang::DisposedException& e) \
{ \
OSL_ENSURE( e.Context.is(), "caught DisposedException with empty Context field" ); \
if ( e.Context == xListener || !e.Context.is() ) \
aIt.remove(); \
} \
- catch( ::com::sun::star::uno::RuntimeException e ) \
+ catch(const ::com::sun::star::uno::RuntimeException& e) \
{ \
DISPLAY_EXCEPTION( ClassName, MethodName, e ) \
} \
@@ -214,13 +214,13 @@ void ClassName::disposing( const ::com::sun::star::lang::EventObject& ) throw(::
{ \
xListener->MethodName( aMulti ); \
} \
- catch( ::com::sun::star::lang::DisposedException e ) \
+ catch(const ::com::sun::star::lang::DisposedException& e) \
{ \
OSL_ENSURE( e.Context.is(), "caught DisposedException with empty Context field" ); \
if ( e.Context == xListener || !e.Context.is() ) \
aIt.remove(); \
} \
- catch( ::com::sun::star::uno::RuntimeException e ) \
+ catch(const ::com::sun::star::uno::RuntimeException& e) \
{ \
DISPLAY_EXCEPTION( ClassName, MethodName, e ) \
} \
@@ -240,13 +240,13 @@ void ClassName::disposing( const ::com::sun::star::lang::EventObject& ) throw(::
{ \
xListener->MethodName( aMulti ); \
} \
- catch( ::com::sun::star::lang::DisposedException e ) \
+ catch(const ::com::sun::star::lang::DisposedException& e) \
{ \
OSL_ENSURE( e.Context.is(), "caught DisposedException with empty Context field" ); \
if ( e.Context == xListener || !e.Context.is() ) \
aIt.remove(); \
} \
- catch( ::com::sun::star::uno::RuntimeException e ) \
+ catch(const ::com::sun::star::uno::RuntimeException& e) \
{ \
DISPLAY_EXCEPTION( ClassName, MethodName, e ) \
} \