From bb9a8524d6bd77d6d3e7d99d14efd344552381c8 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Caol=C3=A1n=20McNamara?= Date: Thu, 13 Feb 2014 13:54:03 +0000 Subject: coverity#738260 Uncaught exception Change-Id: Iffe842fad73eadf69c67f03cfd1d99aadf70a167 --- 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 e88872063207..576e421fd9b9 100644 --- a/sw/inc/unotbl.hxx +++ b/sw/inc/unotbl.hxx @@ -545,7 +545,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 107be3c0089e..57346fc7bcd7 100644 --- a/sw/source/core/unocore/unotbl.cxx +++ b/sw/source/core/unocore/unotbl.cxx @@ -4852,7 +4852,8 @@ void SwXTableRows::insertByIndex(sal_Int32 nIndex, sal_Int32 nCount) } } -void SwXTableRows::removeByIndex(sal_Int32 nIndex, sal_Int32 nCount) throw( uno::RuntimeException ) +void SwXTableRows::removeByIndex(sal_Int32 nIndex, sal_Int32 nCount) + throw (uno::RuntimeException, std::exception) { SolarMutexGuard aGuard; if (nCount == 0) -- cgit v1.2.1