From 42d46144df4f30f8f9d5aa4c92e653005ec9f2a8 Mon Sep 17 00:00:00 2001 From: Caolán McNamara Date: Mon, 24 Feb 2014 13:32:49 +0000 Subject: coverity#737506 Uncaught exception Change-Id: Ib36b9bab3f31b32b8be3d7c51af7f26280a7a069 --- sc/inc/dapiuno.hxx | 11 ++++++----- sc/source/ui/unoobj/dapiuno.cxx | 4 +++- 2 files changed, 9 insertions(+), 6 deletions(-) (limited to 'sc') diff --git a/sc/inc/dapiuno.hxx b/sc/inc/dapiuno.hxx index 45080c2aab7d..10fdb0803d63 100644 --- a/sc/inc/dapiuno.hxx +++ b/sc/inc/dapiuno.hxx @@ -521,11 +521,12 @@ public: throw(::com::sun::star::uno::RuntimeException); virtual void SAL_CALL setPropertyValue( const OUString& aPropertyName, const ::com::sun::star::uno::Any& aValue ) - throw(::com::sun::star::beans::UnknownPropertyException, - ::com::sun::star::beans::PropertyVetoException, - ::com::sun::star::lang::IllegalArgumentException, - ::com::sun::star::lang::WrappedTargetException, - ::com::sun::star::uno::RuntimeException); + throw (::com::sun::star::beans::UnknownPropertyException, + ::com::sun::star::beans::PropertyVetoException, + ::com::sun::star::lang::IllegalArgumentException, + ::com::sun::star::lang::WrappedTargetException, + ::com::sun::star::uno::RuntimeException, + std::exception); virtual ::com::sun::star::uno::Any SAL_CALL getPropertyValue( const OUString& PropertyName ) throw (::com::sun::star::beans::UnknownPropertyException, diff --git a/sc/source/ui/unoobj/dapiuno.cxx b/sc/source/ui/unoobj/dapiuno.cxx index 890b0f9cf240..6f1b4e5ee4a0 100644 --- a/sc/source/ui/unoobj/dapiuno.cxx +++ b/sc/source/ui/unoobj/dapiuno.cxx @@ -1888,7 +1888,9 @@ Reference SAL_CALL ScDataPilotFieldObj::getPropertySetInfo() } void SAL_CALL ScDataPilotFieldObj::setPropertyValue( const OUString& aPropertyName, const Any& aValue ) - throw(UnknownPropertyException, PropertyVetoException, IllegalArgumentException, WrappedTargetException, RuntimeException) + throw (UnknownPropertyException, PropertyVetoException, + IllegalArgumentException, WrappedTargetException, + RuntimeException, std::exception) { SolarMutexGuard aGuard; OUString aNameString(aPropertyName); -- cgit