diff options
author | Caolán McNamara <caolanm@redhat.com> | 2014-02-25 13:54:00 +0000 |
---|---|---|
committer | Caolán McNamara <caolanm@redhat.com> | 2014-02-25 14:27:46 +0000 |
commit | c80621d399bef649a57a3300efa7d4fab2746670 (patch) | |
tree | 0bc5b763c86e37c27fa22aee96458d64e3dc3182 | |
parent | 856ec7313efe971866c65c1e7dfda6ced43f2451 (diff) |
coverity#738369 Uncaught exception
Change-Id: I0c1c30d5e2b9bd9ca176792edf720f8af3979ca8
-rw-r--r-- | sw/inc/unotxdoc.hxx | 7 | ||||
-rw-r--r-- | sw/source/ui/uno/unotxdoc.cxx | 8 |
2 files changed, 10 insertions, 5 deletions
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()) |