summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorCaolán McNamara <caolanm@redhat.com>2014-02-13 13:54:03 +0000
committerCaolán McNamara <caolanm@redhat.com>2014-02-13 14:56:24 +0000
commitbb9a8524d6bd77d6d3e7d99d14efd344552381c8 (patch)
tree158143d65812850fa5693fd9ec32e979ceb686ac
parentb1ed6e54de396de0840e6deec37c30e492ffe6eb (diff)
coverity#738260 Uncaught exception
Change-Id: Iffe842fad73eadf69c67f03cfd1d99aadf70a167
-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 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)