From 4422c2271c05b9e1f25a0a03ec639a70a5281060 Mon Sep 17 00:00:00 2001 From: Caolán McNamara Date: Fri, 6 Nov 2015 09:36:56 +0000 Subject: coverity#1338250 Uncaught exception Change-Id: I0c78b48213b4a638eca86eb9481974f49bc35319 --- include/svx/unoshape.hxx | 2 +- svx/source/unodraw/unoshap2.cxx | 4 +--- 2 files changed, 2 insertions(+), 4 deletions(-) diff --git a/include/svx/unoshape.hxx b/include/svx/unoshape.hxx index 7ed8a2c71f11..41e4e384de39 100644 --- a/include/svx/unoshape.hxx +++ b/include/svx/unoshape.hxx @@ -659,7 +659,7 @@ protected: // override these for special property handling in subcasses. Return true if property is handled virtual bool setPropertyValueImpl( const OUString& rName, const SfxItemPropertySimpleEntry* pProperty, const css::uno::Any& rValue ) throw(css::beans::UnknownPropertyException, css::beans::PropertyVetoException, css::lang::IllegalArgumentException, css::lang::WrappedTargetException, css::uno::RuntimeException, std::exception) override; - virtual bool getPropertyValueImpl( const OUString& rName, const SfxItemPropertySimpleEntry* pProperty, css::uno::Any& rValue ) throw(css::beans::UnknownPropertyException, css::lang::WrappedTargetException, css::uno::RuntimeException) override; + virtual bool getPropertyValueImpl( const OUString& rName, const SfxItemPropertySimpleEntry* pProperty, css::uno::Any& rValue ) throw(css::beans::UnknownPropertyException, css::lang::WrappedTargetException, css::uno::RuntimeException, std::exception) override; public: SvxGraphicObject( SdrObject* pObj, OUString const & referer ) throw(); diff --git a/svx/source/unodraw/unoshap2.cxx b/svx/source/unodraw/unoshap2.cxx index 46a7e80fe316..b9cb41a4bbfb 100644 --- a/svx/source/unodraw/unoshap2.cxx +++ b/svx/source/unodraw/unoshap2.cxx @@ -1572,9 +1572,7 @@ bool SvxGraphicObject::setPropertyValueImpl( const OUString& rName, const SfxIte return true; } - - -bool SvxGraphicObject::getPropertyValueImpl( const OUString& rName, const SfxItemPropertySimpleEntry* pProperty, css::uno::Any& rValue ) throw(css::beans::UnknownPropertyException, css::lang::WrappedTargetException, css::uno::RuntimeException) +bool SvxGraphicObject::getPropertyValueImpl( const OUString& rName, const SfxItemPropertySimpleEntry* pProperty, css::uno::Any& rValue ) throw(css::beans::UnknownPropertyException, css::lang::WrappedTargetException, css::uno::RuntimeException, std::exception) { switch( pProperty->nWID ) { -- cgit