summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorCaolán McNamara <caolanm@redhat.com>2014-02-13 13:53:13 +0000
committerCaolán McNamara <caolanm@redhat.com>2014-02-13 14:56:24 +0000
commitb1ed6e54de396de0840e6deec37c30e492ffe6eb (patch)
treec67c800126f817ab7ea48e6be0bcc0fd9135683f
parent580475038043b21ac3d5618399e2634dc91395dc (diff)
coverity#738258 Uncaught exception
Change-Id: I3a38f7db881469a5a08fa48f77609355ff6dae4c
-rw-r--r--sw/inc/unotbl.hxx4
-rw-r--r--sw/source/core/unocore/unotbl.cxx3
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)