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/testconv.cxx | |
parent | 1d55be916472270d23f7d3ff7513dd6df6dc1e46 (diff) |
catch exception by constant reference
Diffstat (limited to 'stoc/test/testconv.cxx')
-rw-r--r-- | stoc/test/testconv.cxx | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/stoc/test/testconv.cxx b/stoc/test/testconv.cxx index 70b94523231a..477e0d322c70 100644 --- a/stoc/test/testconv.cxx +++ b/stoc/test/testconv.cxx @@ -183,7 +183,7 @@ static sal_Bool convertTo( const Type & rDestType, const Any & rVal, sal_Bool bE aRet = s_xConverter->convertTo( rVal, rDestType ); bCanConvert = sal_True; } - catch (Exception & rExc) + catch (const Exception & rExc) { aExcMsg = OUStringToOString( rExc.Message, RTL_TEXTENCODING_ASCII_US ); } @@ -237,7 +237,7 @@ static sal_Bool convertTo( const Type & rDestType, const Any & rVal, sal_Bool bE aRet2 = s_xConverter->convertTo( aRet, rVal.getValueType() ); bReConvert = sal_True; } - catch (Exception & rExc) + catch (const Exception & rExc) { aExcMsg = OUStringToOString( rExc.Message, RTL_TEXTENCODING_ISO_8859_1 ); } @@ -690,7 +690,7 @@ SAL_IMPLEMENT_MAIN() test_Conversion( xMgr ); } - catch (Exception & rExc) + catch (const Exception & rExc) { OSL_FAIL( "### exception occurred!" ); OString aMsg( OUStringToOString( rExc.Message, RTL_TEXTENCODING_ASCII_US ) ); |