summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorCaolán McNamara <caolanm@redhat.com>2014-02-25 13:14:19 +0000
committerCaolán McNamara <caolanm@redhat.com>2014-02-25 14:27:41 +0000
commitaeafceca82c7270fb158bbd0bbc3572ac8ae4f48 (patch)
treef5aa9164be2d7b5bde13e1bdcfea23d654bcf082
parent0d39bb06509a4b782123e14a98b1b3e699c235ab (diff)
coverity#738287 Uncaught exception
Change-Id: Ib96d9b0c695f25b4ac1f26c95309d9990278bd00
-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 f6fc9e73be1f..68929ee2295b 100644
--- a/sw/inc/unotbl.hxx
+++ b/sw/inc/unotbl.hxx
@@ -239,7 +239,9 @@ public:
virtual sal_Bool SAL_CALL mergeRange()
throw (::com::sun::star::uno::RuntimeException,
std::exception);
- virtual sal_Bool SAL_CALL splitRange( sal_Int16 Count, sal_Bool Horizontal ) throw(::com::sun::star::uno::RuntimeException);
+ virtual sal_Bool SAL_CALL splitRange( sal_Int16 Count, sal_Bool Horizontal )
+ throw (::com::sun::star::uno::RuntimeException,
+ std::exception);
//XPropertySet
virtual ::com::sun::star::uno::Reference< ::com::sun::star::beans::XPropertySetInfo > SAL_CALL getPropertySetInfo( ) throw(::com::sun::star::uno::RuntimeException);
diff --git a/sw/source/core/unocore/unotbl.cxx b/sw/source/core/unocore/unotbl.cxx
index 148d26254657..a3b8a84bffbf 100644
--- a/sw/source/core/unocore/unotbl.cxx
+++ b/sw/source/core/unocore/unotbl.cxx
@@ -1780,7 +1780,8 @@ sal_Bool SwXTextTableCursor::mergeRange()
return bRet;
}
-sal_Bool SwXTextTableCursor::splitRange(sal_Int16 Count, sal_Bool Horizontal) throw( uno::RuntimeException )
+sal_Bool SwXTextTableCursor::splitRange(sal_Int16 Count, sal_Bool Horizontal)
+ throw (uno::RuntimeException, std::exception)
{
SolarMutexGuard aGuard;
if (Count <= 0)