diff options
author | Caolán McNamara <caolanm@redhat.com> | 2014-04-23 08:51:19 +0100 |
---|---|---|
committer | Caolán McNamara <caolanm@redhat.com> | 2014-04-23 09:40:03 +0100 |
commit | 0bab690a4ad883e0872601bc4965bb9c0668fefb (patch) | |
tree | a404224517207fbc081300dc2ef03a39672365d1 /sw | |
parent | 06bd4e49ead2b7b195bfb1bd6ddccc29f7e6628b (diff) |
coverity#707317 Uncaught exception
Change-Id: I8ff4820f03311cb059da5e515d31d08239ac732d
Diffstat (limited to 'sw')
-rw-r--r-- | sw/source/core/uibase/uno/SwXDocumentSettings.cxx | 2 | ||||
-rw-r--r-- | sw/source/core/uibase/uno/SwXDocumentSettings.hxx | 4 |
2 files changed, 4 insertions, 2 deletions
diff --git a/sw/source/core/uibase/uno/SwXDocumentSettings.cxx b/sw/source/core/uibase/uno/SwXDocumentSettings.cxx index 0f4a84061a69..ad30b94411d5 100644 --- a/sw/source/core/uibase/uno/SwXDocumentSettings.cxx +++ b/sw/source/core/uibase/uno/SwXDocumentSettings.cxx @@ -302,7 +302,7 @@ void SwXDocumentSettings::_preSetValues () } void SwXDocumentSettings::_setSingleValue( const comphelper::PropertyInfo & rInfo, const uno::Any &rValue ) - throw(beans::UnknownPropertyException, beans::PropertyVetoException, lang::IllegalArgumentException, lang::WrappedTargetException ) + throw (beans::UnknownPropertyException, beans::PropertyVetoException, lang::IllegalArgumentException, lang::WrappedTargetException, uno::RuntimeException, std::exception) { if (rInfo.mnAttributes & PropertyAttribute::READONLY) throw PropertyVetoException ("Property is read-only: " + rInfo.maName, static_cast < cppu::OWeakObject * > ( 0 ) ); diff --git a/sw/source/core/uibase/uno/SwXDocumentSettings.hxx b/sw/source/core/uibase/uno/SwXDocumentSettings.hxx index c153f2e0eb2e..181f553eb99a 100644 --- a/sw/source/core/uibase/uno/SwXDocumentSettings.hxx +++ b/sw/source/core/uibase/uno/SwXDocumentSettings.hxx @@ -52,7 +52,9 @@ protected: virtual void _preSetValues () throw(::com::sun::star::beans::UnknownPropertyException, ::com::sun::star::beans::PropertyVetoException, ::com::sun::star::lang::IllegalArgumentException, ::com::sun::star::lang::WrappedTargetException ) SAL_OVERRIDE; virtual void _setSingleValue( const comphelper::PropertyInfo & rInfo, const ::com::sun::star::uno::Any &rValue ) - throw(::com::sun::star::beans::UnknownPropertyException, ::com::sun::star::beans::PropertyVetoException, ::com::sun::star::lang::IllegalArgumentException, ::com::sun::star::lang::WrappedTargetException ) SAL_OVERRIDE; + throw (css::beans::UnknownPropertyException, css::beans::PropertyVetoException, + css::lang::IllegalArgumentException, css::lang::WrappedTargetException, + css::uno::RuntimeException, std::exception) SAL_OVERRIDE; virtual void _postSetValues () throw(::com::sun::star::beans::UnknownPropertyException, ::com::sun::star::beans::PropertyVetoException, ::com::sun::star::lang::IllegalArgumentException, ::com::sun::star::lang::WrappedTargetException ) SAL_OVERRIDE; |