summaryrefslogtreecommitdiff
path: root/pyuno/source/module/pyuno_except.cxx
diff options
context:
space:
mode:
authorTakeshi Abe <tabe@fixedpoint.jp>2011-12-21 21:57:16 +0900
committerTakeshi Abe <tabe@fixedpoint.jp>2011-12-21 21:57:54 +0900
commit7958f8244cc3e554b1339b14c7e589dfcbb0526c (patch)
tree8654a25c98b3338cc9f8c4377c89d4dce06387ad /pyuno/source/module/pyuno_except.cxx
parent7167559379cd44e0160ba20c69cbb6954887e32b (diff)
catch exception by constant reference
Diffstat (limited to 'pyuno/source/module/pyuno_except.cxx')
-rw-r--r--pyuno/source/module/pyuno_except.cxx6
1 files changed, 3 insertions, 3 deletions
diff --git a/pyuno/source/module/pyuno_except.cxx b/pyuno/source/module/pyuno_except.cxx
index f36cb0ab13ae..10882af2308b 100644
--- a/pyuno/source/module/pyuno_except.cxx
+++ b/pyuno/source/module/pyuno_except.cxx
@@ -72,17 +72,17 @@ void raisePyExceptionWithAny( const com::sun::star::uno::Any &anyExc )
OUStringToOString(buf.makeStringAndClear(),RTL_TEXTENCODING_ASCII_US).getStr() );
}
}
- catch( com::sun::star::lang::IllegalArgumentException & e)
+ catch(const com::sun::star::lang::IllegalArgumentException & e)
{
PyErr_SetString( PyExc_SystemError,
OUStringToOString( e.Message, RTL_TEXTENCODING_ASCII_US).getStr() );
}
- catch( com::sun::star::script::CannotConvertException & e)
+ catch(const com::sun::star::script::CannotConvertException & e)
{
PyErr_SetString( PyExc_SystemError,
OUStringToOString( e.Message, RTL_TEXTENCODING_ASCII_US).getStr() );
}
- catch( RuntimeException & e)
+ catch(const RuntimeException & e)
{
PyErr_SetString( PyExc_SystemError,
OUStringToOString( e.Message, RTL_TEXTENCODING_ASCII_US).getStr() );