diff options
author | Caolán McNamara <caolanm@redhat.com> | 2014-06-10 15:15:54 +0100 |
---|---|---|
committer | Caolán McNamara <caolanm@redhat.com> | 2014-06-10 16:08:05 +0100 |
commit | 31778e3eebf8294c1a5f444f21612078fb45c93c (patch) | |
tree | d31e3e5825d2490bca3ad7167059d596d3009521 | |
parent | 3cd26a85e3e30c4e75f8ec81a76c48bb16cef1ee (diff) |
coverity#707350 Uncaught exception
Change-Id: Ic338659d34c91baad715c2181f420d919acf1fe9
-rw-r--r-- | include/comphelper/ChainablePropertySet.hxx | 8 | ||||
-rw-r--r-- | sw/source/uibase/inc/unomod.hxx | 6 | ||||
-rw-r--r-- | sw/source/uibase/uno/unomod.cxx | 4 |
3 files changed, 14 insertions, 4 deletions
diff --git a/include/comphelper/ChainablePropertySet.hxx b/include/comphelper/ChainablePropertySet.hxx index 127abccb6f20..ecd3a02dcd1b 100644 --- a/include/comphelper/ChainablePropertySet.hxx +++ b/include/comphelper/ChainablePropertySet.hxx @@ -69,8 +69,12 @@ namespace comphelper css::lang::IllegalArgumentException, css::lang::WrappedTargetException, css::uno::RuntimeException) = 0; - virtual void _setSingleValue( const comphelper::PropertyInfo & rInfo, const ::com::sun::star::uno::Any &rValue ) - throw(::com::sun::star::beans::UnknownPropertyException, ::com::sun::star::beans::PropertyVetoException, ::com::sun::star::lang::IllegalArgumentException, ::com::sun::star::lang::WrappedTargetException ) = 0; + virtual void _setSingleValue(const comphelper::PropertyInfo & rInfo, const ::com::sun::star::uno::Any &rValue) + throw (css::beans::UnknownPropertyException, + css::beans::PropertyVetoException, + css::lang::IllegalArgumentException, + css::lang::WrappedTargetException, + css::uno::RuntimeException) = 0; virtual void _postSetValues () throw (css::beans::UnknownPropertyException, css::beans::PropertyVetoException, diff --git a/sw/source/uibase/inc/unomod.hxx b/sw/source/uibase/inc/unomod.hxx index 064291ce6b7a..4f8b317e3bfc 100644 --- a/sw/source/uibase/inc/unomod.hxx +++ b/sw/source/uibase/inc/unomod.hxx @@ -143,7 +143,11 @@ protected: css::lang::WrappedTargetException, css::uno::RuntimeException) SAL_OVERRIDE; virtual void _setSingleValue( const comphelper::PropertyInfo & rInfo, const ::com::sun::star::uno::Any &rValue ) - throw(::com::sun::star::beans::UnknownPropertyException, ::com::sun::star::beans::PropertyVetoException, ::com::sun::star::lang::IllegalArgumentException, ::com::sun::star::lang::WrappedTargetException ) SAL_OVERRIDE; + throw (css::beans::UnknownPropertyException, + css::beans::PropertyVetoException, + css::lang::IllegalArgumentException, + css::lang::WrappedTargetException, + css::uno::RuntimeException) SAL_OVERRIDE; virtual void _postSetValues() throw (css::beans::UnknownPropertyException, css::beans::PropertyVetoException, diff --git a/sw/source/uibase/uno/unomod.cxx b/sw/source/uibase/uno/unomod.cxx index 0153a60f4743..ea4b619eb633 100644 --- a/sw/source/uibase/uno/unomod.cxx +++ b/sw/source/uibase/uno/unomod.cxx @@ -603,7 +603,9 @@ void SwXViewSettings::_preSetValues () } void SwXViewSettings::_setSingleValue( const comphelper::PropertyInfo & rInfo, const uno::Any &rValue ) - throw(UnknownPropertyException, PropertyVetoException, IllegalArgumentException, WrappedTargetException ) + throw (UnknownPropertyException, PropertyVetoException, + IllegalArgumentException, WrappedTargetException, + RuntimeException) { bool bVal = HANDLE_VIEWSET_ZOOM != rInfo.mnHandle ? *(sal_Bool*)rValue.getValue() : sal_False; |