summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorCaolán McNamara <caolanm@redhat.com>2014-02-25 13:07:03 +0000
committerCaolán McNamara <caolanm@redhat.com>2014-02-25 14:27:37 +0000
commit5bfdb02649b57ac30c57733b727ae169b0f19ec4 (patch)
treea6eb892f799983cf7a2c05d4e2d4fae3e087cd8a
parent685f2b02744202555b379f631e73fad7f29a6a67 (diff)
coverity#738272 Uncaught exception
Change-Id: I78b9d67982bef7abd8f26c52f09f710042f60610
-rw-r--r--sw/inc/unotbl.hxx4
-rw-r--r--sw/source/core/unocore/unotbl.cxx2
2 files changed, 4 insertions, 2 deletions
diff --git a/sw/inc/unotbl.hxx b/sw/inc/unotbl.hxx
index ecea107a89e0..ed3d88824202 100644
--- a/sw/inc/unotbl.hxx
+++ b/sw/inc/unotbl.hxx
@@ -343,7 +343,9 @@ 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 getCellRangeByName( const OUString& aRange ) throw(::com::sun::star::uno::RuntimeException);
+ virtual ::com::sun::star::uno::Reference< ::com::sun::star::table::XCellRange > SAL_CALL getCellRangeByName( const OUString& aRange )
+ throw (::com::sun::star::uno::RuntimeException,
+ std::exception);
//XChartDataArray
virtual ::com::sun::star::uno::Sequence< ::com::sun::star::uno::Sequence< double > > SAL_CALL getData( ) throw(::com::sun::star::uno::RuntimeException);
diff --git a/sw/source/core/unocore/unotbl.cxx b/sw/source/core/unocore/unotbl.cxx
index c0ecdb5bb6ee..3e555e7dae49 100644
--- a/sw/source/core/unocore/unotbl.cxx
+++ b/sw/source/core/unocore/unotbl.cxx
@@ -2563,7 +2563,7 @@ uno::Reference< table::XCellRange > SwXTextTable::getCellRangeByPosition(sal_In
}
uno::Reference< table::XCellRange > SwXTextTable::getCellRangeByName(const OUString& aRange)
- throw( uno::RuntimeException )
+ throw (uno::RuntimeException, std::exception)
{
SolarMutexGuard aGuard;
uno::Reference< table::XCellRange > aRef;