diff options
author | Caolán McNamara <caolanm@redhat.com> | 2014-02-25 15:13:07 +0000 |
---|---|---|
committer | Caolán McNamara <caolanm@redhat.com> | 2014-02-25 16:12:18 +0000 |
commit | 8c91a82e8d5b02b91c4fdfad6d297a55149847f3 (patch) | |
tree | b986ac1acbfca801987baae098f28903345b1ae5 /sw | |
parent | d719713cd8d8779f2ecb39382cd6ddc29d7bd6ef (diff) |
coverity#738426 Uncaught exception
Change-Id: I0a31715a79cde61ceb104e82dc05c5a752f9085d
Diffstat (limited to 'sw')
-rw-r--r-- | sw/source/ui/inc/unotxvw.hxx | 5 | ||||
-rw-r--r-- | sw/source/ui/uno/unotxvw.cxx | 3 |
2 files changed, 6 insertions, 2 deletions
diff --git a/sw/source/ui/inc/unotxvw.hxx b/sw/source/ui/inc/unotxvw.hxx index 7f83015184b0..cb4b8ec9983b 100644 --- a/sw/source/ui/inc/unotxvw.hxx +++ b/sw/source/ui/inc/unotxvw.hxx @@ -280,7 +280,10 @@ public: throw (::com::sun::star::beans::UnknownPropertyException, ::com::sun::star::uno::RuntimeException, std::exception); - virtual void SAL_CALL setPropertyToDefault( const OUString& PropertyName ) throw(::com::sun::star::beans::UnknownPropertyException, ::com::sun::star::uno::RuntimeException); + virtual void SAL_CALL setPropertyToDefault( const OUString& PropertyName ) + throw (::com::sun::star::beans::UnknownPropertyException, + ::com::sun::star::uno::RuntimeException, + std::exception); virtual ::com::sun::star::uno::Any SAL_CALL getPropertyDefault( const OUString& aPropertyName ) throw (::com::sun::star::beans::UnknownPropertyException, ::com::sun::star::lang::WrappedTargetException, diff --git a/sw/source/ui/uno/unotxvw.cxx b/sw/source/ui/uno/unotxvw.cxx index 9929eceb5ae8..c32ee9198208 100644 --- a/sw/source/ui/uno/unotxvw.cxx +++ b/sw/source/ui/uno/unotxvw.cxx @@ -1586,7 +1586,8 @@ Sequence< PropertyState > SwXTextViewCursor::getPropertyStates( } void SwXTextViewCursor::setPropertyToDefault( const OUString& rPropertyName ) - throw(UnknownPropertyException, RuntimeException) + throw (UnknownPropertyException, RuntimeException, + std::exception) { SolarMutexGuard aGuard; if(m_pView) |