coverity#707350 Uncaught exception

Change-Id: Ic338659d34c91baad715c2181f420d919acf1fe9
This commit is contained in:
Caolán McNamara
2014-06-10 15:15:54 +01:00
parent 3cd26a85e3
commit 31778e3eeb
3 changed files with 14 additions and 4 deletions

View File

@@ -69,8 +69,12 @@ namespace comphelper
css::lang::IllegalArgumentException, css::lang::IllegalArgumentException,
css::lang::WrappedTargetException, css::lang::WrappedTargetException,
css::uno::RuntimeException) = 0; css::uno::RuntimeException) = 0;
virtual void _setSingleValue( const comphelper::PropertyInfo & rInfo, const ::com::sun::star::uno::Any &rValue ) 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; throw (css::beans::UnknownPropertyException,
css::beans::PropertyVetoException,
css::lang::IllegalArgumentException,
css::lang::WrappedTargetException,
css::uno::RuntimeException) = 0;
virtual void _postSetValues () virtual void _postSetValues ()
throw (css::beans::UnknownPropertyException, throw (css::beans::UnknownPropertyException,
css::beans::PropertyVetoException, css::beans::PropertyVetoException,

View File

@@ -143,7 +143,11 @@ protected:
css::lang::WrappedTargetException, css::lang::WrappedTargetException,
css::uno::RuntimeException) SAL_OVERRIDE; css::uno::RuntimeException) SAL_OVERRIDE;
virtual void _setSingleValue( const comphelper::PropertyInfo & rInfo, const ::com::sun::star::uno::Any &rValue ) 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() virtual void _postSetValues()
throw (css::beans::UnknownPropertyException, throw (css::beans::UnknownPropertyException,
css::beans::PropertyVetoException, css::beans::PropertyVetoException,

View File

@@ -603,7 +603,9 @@ void SwXViewSettings::_preSetValues ()
} }
void SwXViewSettings::_setSingleValue( const comphelper::PropertyInfo & rInfo, const uno::Any &rValue ) 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 ? bool bVal = HANDLE_VIEWSET_ZOOM != rInfo.mnHandle ?
*(sal_Bool*)rValue.getValue() : sal_False; *(sal_Bool*)rValue.getValue() : sal_False;