summaryrefslogtreecommitdiff
path: root/pyuno/source/module/pyuno_type.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_type.cxx
parent7167559379cd44e0160ba20c69cbb6954887e32b (diff)
catch exception by constant reference
Diffstat (limited to 'pyuno/source/module/pyuno_type.cxx')
-rw-r--r--pyuno/source/module/pyuno_type.cxx6
1 files changed, 3 insertions, 3 deletions
diff --git a/pyuno/source/module/pyuno_type.cxx b/pyuno/source/module/pyuno_type.cxx
index 8dac1a16e1fb..c1897640d441 100644
--- a/pyuno/source/module/pyuno_type.cxx
+++ b/pyuno/source/module/pyuno_type.cxx
@@ -348,15 +348,15 @@ PyObject *importToGlobal(PyObject *str, PyObject *dict, PyObject *target)
PyExc_RuntimeError,
OUStringToOString( buf.makeStringAndClear(), RTL_TEXTENCODING_ASCII_US).getStr() );
}
- catch( com::sun::star::script::CannotConvertException & e )
+ catch( const com::sun::star::script::CannotConvertException & e )
{
raisePyExceptionWithAny( com::sun::star::uno::makeAny( e ) );
}
- catch( com::sun::star::lang::IllegalArgumentException & e )
+ catch( const com::sun::star::lang::IllegalArgumentException & e )
{
raisePyExceptionWithAny( com::sun::star::uno::makeAny( e ) );
}
- catch( RuntimeException &e )
+ catch( const RuntimeException &e )
{
raisePyExceptionWithAny( com::sun::star::uno::makeAny( e ));
}