From b1de670d6a39db535b945cbc04718a44bfd3cf19 Mon Sep 17 00:00:00 2001 From: Caolán McNamara Date: Wed, 26 Oct 2016 09:25:51 +0100 Subject: coverity#1374278 Uncaught exception Change-Id: Ide557d1a3237c36067107d357ac2df6186994e10 --- forms/source/component/EditBase.cxx | 5 ++--- forms/source/component/EditBase.hxx | 2 +- 2 files changed, 3 insertions(+), 4 deletions(-) (limited to 'forms') diff --git a/forms/source/component/EditBase.cxx b/forms/source/component/EditBase.cxx index b44505cee585..3cde33ea2b20 100644 --- a/forms/source/component/EditBase.cxx +++ b/forms/source/component/EditBase.cxx @@ -291,9 +291,9 @@ void OEditBaseModel::getFastPropertyValue( Any& rValue, sal_Int32 nHandle ) cons } } - sal_Bool OEditBaseModel::convertFastPropertyValue( Any& rConvertedValue, Any& rOldValue, - sal_Int32 nHandle, const Any& rValue ) throw( IllegalArgumentException ) + sal_Int32 nHandle, const Any& rValue ) + throw( IllegalArgumentException, RuntimeException, std::exception ) { bool bModified(false); switch (nHandle) @@ -326,7 +326,6 @@ sal_Bool OEditBaseModel::convertFastPropertyValue( Any& rConvertedValue, Any& rO return bModified; } - void OEditBaseModel::setFastPropertyValue_NoBroadcast( sal_Int32 nHandle, const Any& rValue ) throw ( css::uno::Exception, std::exception) { switch (nHandle) diff --git a/forms/source/component/EditBase.hxx b/forms/source/component/EditBase.hxx index 569b42240f77..07605ac0e4ee 100644 --- a/forms/source/component/EditBase.hxx +++ b/forms/source/component/EditBase.hxx @@ -76,7 +76,7 @@ public: virtual void SAL_CALL getFastPropertyValue(css::uno::Any& rValue, sal_Int32 nHandle ) const override; virtual sal_Bool SAL_CALL convertFastPropertyValue(css::uno::Any& rConvertedValue, css::uno::Any& rOldValue, sal_Int32 nHandle, const css::uno::Any& rValue ) - throw(css::lang::IllegalArgumentException) override; + throw(css::lang::IllegalArgumentException, css::uno::RuntimeException, std::exception) override; virtual void SAL_CALL setFastPropertyValue_NoBroadcast(sal_Int32 nHandle, const css::uno::Any& rValue) throw ( css::uno::Exception, std::exception) override; using ::cppu::OPropertySetHelper::getFastPropertyValue; -- cgit