diff options
author | Caolán McNamara <caolanm@redhat.com> | 2011-06-16 00:52:20 +0100 |
---|---|---|
committer | Caolán McNamara <caolanm@redhat.com> | 2011-06-16 09:15:37 +0100 |
commit | 75705b69c049a2ca10b8e5f2c04232bb82004418 (patch) | |
tree | fdadfde018dbf91b4b5fb7ffa115440eb2a6f34a /vbahelper/source/msforms | |
parent | 43afab8818d7bca24897ddee9b74fbeb74bf4c56 (diff) |
catch by const reference
Diffstat (limited to 'vbahelper/source/msforms')
-rw-r--r-- | vbahelper/source/msforms/vbacontrol.cxx | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/vbahelper/source/msforms/vbacontrol.cxx b/vbahelper/source/msforms/vbacontrol.cxx index 143db79e9c01..8bebe6050d44 100644 --- a/vbahelper/source/msforms/vbacontrol.cxx +++ b/vbahelper/source/msforms/vbacontrol.cxx @@ -93,7 +93,7 @@ ScVbaControl::getWindowPeer() throw (uno::RuntimeException) uno::Reference< awt::XControl > xControl( xControlAccess->getControl( xControlModel ), uno::UNO_QUERY ); xWinPeer = xControl->getPeer(); } - catch( uno::Exception ) + catch(const uno::Exception&) { throw uno::RuntimeException( rtl::OUString(RTL_CONSTASCII_USTRINGPARAM("The Control does not exsit")), uno::Reference< uno::XInterface >() ); @@ -305,7 +305,7 @@ ScVbaControl::getControlSource() throw (uno::RuntimeException) xConvertor->setPropertyValue( rtl::OUString( RTL_CONSTASCII_USTRINGPARAM("Address") ), uno::makeAny( aAddress ) ); xConvertor->getPropertyValue( rtl::OUString( RTL_CONSTASCII_USTRINGPARAM("XL_A1_Representation") ) ) >>= sControlSource; } - catch( uno::Exception& ) + catch(const uno::Exception&) { } } @@ -345,7 +345,7 @@ ScVbaControl::getRowSource() throw (uno::RuntimeException) xConvertor->setPropertyValue( rtl::OUString( RTL_CONSTASCII_USTRINGPARAM("Address")), uno::makeAny( aAddress ) ); xConvertor->getPropertyValue( rtl::OUString( RTL_CONSTASCII_USTRINGPARAM("XL_A1_Representation") ) ) >>= sRowSource; } - catch( uno::Exception& ) + catch(const uno::Exception&) { } } @@ -469,7 +469,7 @@ void ScVbaControl::fireEvent( script::ScriptEvent& evt ) } } } - catch( uno::Exception& e ) + catch(const uno::Exception&) { } } |