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_runtime.cxx | |
parent | 7167559379cd44e0160ba20c69cbb6954887e32b (diff) |
catch exception by constant reference
Diffstat (limited to 'pyuno/source/module/pyuno_runtime.cxx')
-rw-r--r-- | pyuno/source/module/pyuno_runtime.cxx | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/pyuno/source/module/pyuno_runtime.cxx b/pyuno/source/module/pyuno_runtime.cxx index e15a72dd054a..21b63893323a 100644 --- a/pyuno/source/module/pyuno_runtime.cxx +++ b/pyuno/source/module/pyuno_runtime.cxx @@ -844,7 +844,7 @@ Any Runtime::pyObject2Any ( const PyRef & source, enum ConversionMode mode ) con { a = getImpl()->cargo->xTypeConverter->convertTo( a, t ); } - catch( com::sun::star::uno::Exception & e ) + catch( const com::sun::star::uno::Exception & e ) { throw RuntimeException( e.Message, e.Context ); } @@ -930,7 +930,7 @@ Any Runtime::extractUnoException( const PyRef & excType, const PyRef &excValue, { unoModule = impl->cargo->getUnoModule(); } - catch (Exception ei) + catch (const Exception &ei) { e=ei; } |