From b1ed6e54de396de0840e6deec37c30e492ffe6eb Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Caol=C3=A1n=20McNamara?= Date: Thu, 13 Feb 2014 13:53:13 +0000 Subject: [PATCH] coverity#738258 Uncaught exception Change-Id: I3a38f7db881469a5a08fa48f77609355ff6dae4c --- 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 26125a6baa39..e88872063207 100644 --- a/sw/inc/unotbl.hxx +++ b/sw/inc/unotbl.hxx @@ -542,7 +542,9 @@ public: virtual sal_Bool SAL_CALL hasElements( ) throw(::com::sun::star::uno::RuntimeException); //XTableRows - virtual void SAL_CALL insertByIndex(sal_Int32 nIndex, sal_Int32 nCount) throw( ::com::sun::star::uno::RuntimeException ); + 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 ); //XServiceInfo diff --git a/sw/source/core/unocore/unotbl.cxx b/sw/source/core/unocore/unotbl.cxx index 08897f389f01..107be3c0089e 100644 --- a/sw/source/core/unocore/unotbl.cxx +++ b/sw/source/core/unocore/unotbl.cxx @@ -4797,7 +4797,8 @@ sal_Bool SwXTableRows::hasElements(void) throw( uno::RuntimeException ) return sal_True; } -void SwXTableRows::insertByIndex(sal_Int32 nIndex, sal_Int32 nCount) throw( uno::RuntimeException ) +void SwXTableRows::insertByIndex(sal_Int32 nIndex, sal_Int32 nCount) + throw (uno::RuntimeException, std::exception) { SolarMutexGuard aGuard; if (nCount == 0)