From c80621d399bef649a57a3300efa7d4fab2746670 Mon Sep 17 00:00:00 2001 From: Caolán McNamara Date: Tue, 25 Feb 2014 13:54:00 +0000 Subject: coverity#738369 Uncaught exception Change-Id: I0c1c30d5e2b9bd9ca176792edf720f8af3979ca8 --- sw/inc/unotxdoc.hxx | 7 ++++++- sw/source/ui/uno/unotxdoc.cxx | 8 ++++---- 2 files changed, 10 insertions(+), 5 deletions(-) (limited to 'sw') diff --git a/sw/inc/unotxdoc.hxx b/sw/inc/unotxdoc.hxx index 551b9c5a9092..899efb21face 100644 --- a/sw/inc/unotxdoc.hxx +++ b/sw/inc/unotxdoc.hxx @@ -366,7 +366,12 @@ public: //XPropertySet virtual css::uno::Reference< css::beans::XPropertySetInfo > SAL_CALL getPropertySetInfo( ) throw(css::uno::RuntimeException); - virtual void SAL_CALL setPropertyValue( const OUString& aPropertyName, const css::uno::Any& aValue ) throw(css::beans::UnknownPropertyException, css::beans::PropertyVetoException, css::lang::IllegalArgumentException, css::lang::WrappedTargetException, css::uno::RuntimeException); + virtual void SAL_CALL setPropertyValue( const OUString& aPropertyName, const css::uno::Any& aValue ) + throw (css::beans::UnknownPropertyException, + css::beans::PropertyVetoException, + css::lang::IllegalArgumentException, + css::lang::WrappedTargetException, + css::uno::RuntimeException); virtual css::uno::Any SAL_CALL getPropertyValue( const OUString& PropertyName ) throw(css::beans::UnknownPropertyException, css::lang::WrappedTargetException, css::uno::RuntimeException); virtual void SAL_CALL addPropertyChangeListener( const OUString& aPropertyName, const css::uno::Reference< css::beans::XPropertyChangeListener >& xListener ) throw(css::beans::UnknownPropertyException, css::lang::WrappedTargetException, css::uno::RuntimeException); virtual void SAL_CALL removePropertyChangeListener( const OUString& aPropertyName, const css::uno::Reference< css::beans::XPropertyChangeListener >& aListener ) throw(css::beans::UnknownPropertyException, css::lang::WrappedTargetException, css::uno::RuntimeException); diff --git a/sw/source/ui/uno/unotxdoc.cxx b/sw/source/ui/uno/unotxdoc.cxx index 1af179aa73e7..49a685705099 100644 --- a/sw/source/ui/uno/unotxdoc.cxx +++ b/sw/source/ui/uno/unotxdoc.cxx @@ -1811,10 +1811,10 @@ Reference< XPropertySetInfo > SwXTextDocument::getPropertySetInfo(void) throw( return xRet; } -void SwXTextDocument::setPropertyValue(const OUString& rPropertyName, - const Any& aValue) - throw( UnknownPropertyException, PropertyVetoException, IllegalArgumentException, - WrappedTargetException, RuntimeException) +void SwXTextDocument::setPropertyValue(const OUString& rPropertyName, const Any& aValue) + throw (UnknownPropertyException, PropertyVetoException, + IllegalArgumentException, WrappedTargetException, + RuntimeException, std::exception) { SolarMutexGuard aGuard; if(!IsValid()) -- cgit