diff options
author | Takeshi Abe <tabe@fixedpoint.jp> | 2011-12-14 00:03:52 +0900 |
---|---|---|
committer | Takeshi Abe <tabe@fixedpoint.jp> | 2011-12-14 01:31:17 +0900 |
commit | 520891d058f9e936b9b8afb490b5a26c156008ef (patch) | |
tree | 6cb8ebad42c3504cb3e26249ba3458afb02a9922 /framework/source/recording | |
parent | 4c1c531435e1bdb151d45626648486062012cbaa (diff) |
catch exception by constant reference
Diffstat (limited to 'framework/source/recording')
-rw-r--r-- | framework/source/recording/dispatchrecorder.cxx | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/framework/source/recording/dispatchrecorder.cxx b/framework/source/recording/dispatchrecorder.cxx index 57c7a7c5a150..5f9578494700 100644 --- a/framework/source/recording/dispatchrecorder.cxx +++ b/framework/source/recording/dispatchrecorder.cxx @@ -232,7 +232,7 @@ void SAL_CALL DispatchRecorder::AppendToBuffer( css::uno::Any aValue, ::rtl::OUS css::uno::Sequence < css::uno::Any > aSeq; css::uno::Any aNew; try { aNew = m_xConverter->convertTo( aValue, ::getCppuType((const css::uno::Sequence < css::uno::Any >*)0) ); } - catch (css::uno::Exception&) {} + catch (const css::uno::Exception&) {} aNew >>= aSeq; aArgumentBuffer.appendAscii("Array("); @@ -320,8 +320,8 @@ void SAL_CALL DispatchRecorder::AppendToBuffer( css::uno::Any aValue, ::rtl::OUS { aNew = m_xConverter->convertToSimpleType( aValue, css::uno::TypeClass_STRING ); } - catch (css::script::CannotConvertException&) {} - catch (css::uno::Exception&) {} + catch (const css::script::CannotConvertException&) {} + catch (const css::uno::Exception&) {} ::rtl::OUString sVal; aNew >>= sVal; |