summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorCaolán McNamara <caolanm@redhat.com>2014-02-13 13:51:13 +0000
committerCaolán McNamara <caolanm@redhat.com>2014-02-13 14:56:23 +0000
commitc7675570469de801552da6f5ba50152d14ffa6ab (patch)
treea8b87cef352c771f4df81e2b1dcab5e78d234198
parent5a1218aa91f49b06f55c85fbaddc3e8123f92ee8 (diff)
coverity#738254 Uncaught exception
Change-Id: Ib31e77d3dfe4cf2397ae41b45997c109d5b6125b
-rw-r--r--sw/inc/unotbl.hxx5
-rw-r--r--sw/source/core/unocore/unotbl.cxx3
2 files changed, 6 insertions, 2 deletions
diff --git a/sw/inc/unotbl.hxx b/sw/inc/unotbl.hxx
index c0b540a04a77..079f0fa49b51 100644
--- a/sw/inc/unotbl.hxx
+++ b/sw/inc/unotbl.hxx
@@ -444,7 +444,10 @@ public:
//XCellRange
virtual ::com::sun::star::uno::Reference< ::com::sun::star::table::XCell > SAL_CALL getCellByPosition( sal_Int32 nColumn, sal_Int32 nRow ) throw( ::com::sun::star::lang::IndexOutOfBoundsException, ::com::sun::star::uno::RuntimeException);
- virtual ::com::sun::star::uno::Reference< ::com::sun::star::table::XCellRange > SAL_CALL getCellRangeByPosition( sal_Int32 nLeft, sal_Int32 nTop, sal_Int32 nRight, sal_Int32 nBottom ) throw(com::sun::star::lang::IndexOutOfBoundsException, ::com::sun::star::uno::RuntimeException);
+ virtual ::com::sun::star::uno::Reference< ::com::sun::star::table::XCellRange > SAL_CALL getCellRangeByPosition( sal_Int32 nLeft, sal_Int32 nTop, sal_Int32 nRight, sal_Int32 nBottom )
+ throw (::com::sun::star::lang::IndexOutOfBoundsException,
+ ::com::sun::star::uno::RuntimeException,
+ std::exception);
virtual ::com::sun::star::uno::Reference< ::com::sun::star::table::XCellRange > SAL_CALL getCellRangeByName( const OUString& aRange ) throw(::com::sun::star::uno::RuntimeException);
//XPropertySet
diff --git a/sw/source/core/unocore/unotbl.cxx b/sw/source/core/unocore/unotbl.cxx
index aff5f590e833..4218f89c961b 100644
--- a/sw/source/core/unocore/unotbl.cxx
+++ b/sw/source/core/unocore/unotbl.cxx
@@ -3813,7 +3813,8 @@ uno::Reference< table::XCell > SwXCellRange::getCellByPosition(sal_Int32 nColum
uno::Reference< table::XCellRange > SwXCellRange::getCellRangeByPosition(
sal_Int32 nLeft, sal_Int32 nTop, sal_Int32 nRight, sal_Int32 nBottom)
- throw( uno::RuntimeException, lang::IndexOutOfBoundsException )
+ throw (uno::RuntimeException, lang::IndexOutOfBoundsException
+ std::exception)
{
SolarMutexGuard aGuard;
uno::Reference< table::XCellRange > aRet;