diff options
author | Takeshi Abe <tabe@fixedpoint.jp> | 2011-12-27 00:12:38 +0900 |
---|---|---|
committer | Takeshi Abe <tabe@fixedpoint.jp> | 2011-12-27 10:17:15 +0900 |
commit | c936e5062770ba100c2eddd7889b51d271c6c73c (patch) | |
tree | 7ab2701dce9bfea7ac5b3b319a05a1aeb4a25cad /stoc/test/testiadapter.cxx | |
parent | 1d55be916472270d23f7d3ff7513dd6df6dc1e46 (diff) |
catch exception by constant reference
Diffstat (limited to 'stoc/test/testiadapter.cxx')
-rw-r--r-- | stoc/test/testiadapter.cxx | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/stoc/test/testiadapter.cxx b/stoc/test/testiadapter.cxx index 8b3c59b0a8f3..28468ce25f1d 100644 --- a/stoc/test/testiadapter.cxx +++ b/stoc/test/testiadapter.cxx @@ -530,7 +530,7 @@ Any XLB_Invocation::invoke( const OUString & rFunctionName, bImplementedMethod = false; } } - catch (IllegalArgumentException & rExc) + catch (const IllegalArgumentException & rExc) { // thrown by raiseException() call InvocationTargetException aExc; @@ -905,7 +905,7 @@ sal_Bool raiseException( const Reference<XLanguageBindingTest > & xLBT ) aRet.Enum, aRet.String, aRet.Interface, aRet.Any, aRet.Sequence, aRet2 ); return sal_False; } - catch (IllegalArgumentException aExc) + catch (const IllegalArgumentException &aExc) { OSL_ENSURE( aExc.ArgumentPosition == 5 && // aExc.Context == xLBT && @@ -938,7 +938,7 @@ sal_Bool raiseException( const Reference<XLanguageBindingTest > & xLBT ) return sal_False; } } - catch (Exception & aExc) + catch (const Exception & aExc) { OSL_ENSURE( //aExc.Context == xLBT && aExc.Message.equalsAsciiL(RTL_CONSTASCII_STRINGPARAM("dum dum dum ich tanz im kreis herum...")), @@ -1058,7 +1058,7 @@ SAL_IMPLEMENT_MAIN() } } } - catch (Exception & rExc) + catch (const Exception & rExc) { fprintf( stderr, "> exception occurred: " ); OString aMsg( OUStringToOString( rExc.Message, RTL_TEXTENCODING_ASCII_US ) ); |