From 062249564863659e6e10f9ab34c74792dcbef8dd Mon Sep 17 00:00:00 2001 From: Caolán McNamara Date: Tue, 25 Feb 2014 13:12:15 +0000 Subject: coverity#738282 Uncaught exception Change-Id: Ia5dd51a19778f370c85544a0fea9833ed6dff909 --- sw/inc/unotbl.hxx | 4 +++- sw/source/core/unocore/unotbl.cxx | 3 ++- 2 files changed, 5 insertions(+), 2 deletions(-) diff --git a/sw/inc/unotbl.hxx b/sw/inc/unotbl.hxx index 1b2a94cf270b..fd898ef7a963 100644 --- a/sw/inc/unotbl.hxx +++ b/sw/inc/unotbl.hxx @@ -605,7 +605,9 @@ public: virtual void SAL_CALL insertByIndex(sal_Int32 nIndex, sal_Int32 nCount) throw (::com::sun::star::uno::RuntimeException, std::exception); - virtual void SAL_CALL removeByIndex(sal_Int32 nIndex, sal_Int32 nCount) throw( ::com::sun::star::uno::RuntimeException ); + virtual void SAL_CALL removeByIndex(sal_Int32 nIndex, sal_Int32 nCount) + throw (::com::sun::star::uno::RuntimeException, + std::exception); //XServiceInfo virtual OUString SAL_CALL getImplementationName(void) throw( ::com::sun::star::uno::RuntimeException ); diff --git a/sw/source/core/unocore/unotbl.cxx b/sw/source/core/unocore/unotbl.cxx index d2f5df213420..15fb2af6f780 100644 --- a/sw/source/core/unocore/unotbl.cxx +++ b/sw/source/core/unocore/unotbl.cxx @@ -5074,7 +5074,8 @@ void SwXTableColumns::insertByIndex(sal_Int32 nIndex, sal_Int32 nCount) } ///@see SwXTableRows::removeByIndex (TODO: seems to be C&P programming here) -void SwXTableColumns::removeByIndex(sal_Int32 nIndex, sal_Int32 nCount) throw( uno::RuntimeException ) +void SwXTableColumns::removeByIndex(sal_Int32 nIndex, sal_Int32 nCount) + throw (uno::RuntimeException, std::exception) { SolarMutexGuard aGuard; if (nCount == 0) -- cgit