summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorCaolán McNamara <caolanm@redhat.com>2014-02-25 13:07:53 +0000
committerCaolán McNamara <caolanm@redhat.com>2014-02-25 14:27:38 +0000
commit619de74f3a02888935c6122099d6d513294c9d19 (patch)
tree291cfcf41a5c32be9b650e0a0c4d05e444276c13
parent5bfdb02649b57ac30c57733b727ae169b0f19ec4 (diff)
coverity#738273 Uncaught exception
Change-Id: I4a1a3721d7d85a9938a9363d751853b864f3a87d
-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 ed3d88824202..f0eddbce5d14 100644
--- a/sw/inc/unotbl.hxx
+++ b/sw/inc/unotbl.hxx
@@ -329,7 +329,9 @@ public:
virtual ::com::sun::star::uno::Reference< ::com::sun::star::table::XTableColumns > SAL_CALL getColumns( ) throw(::com::sun::star::uno::RuntimeException);
virtual ::com::sun::star::uno::Reference< ::com::sun::star::table::XCell > SAL_CALL getCellByName( const OUString& aCellName ) throw(::com::sun::star::uno::RuntimeException);
virtual ::com::sun::star::uno::Sequence< OUString > SAL_CALL getCellNames( ) throw(::com::sun::star::uno::RuntimeException);
- virtual ::com::sun::star::uno::Reference< ::com::sun::star::text::XTextTableCursor > SAL_CALL createCursorByCellName( const OUString& aCellName ) throw(::com::sun::star::uno::RuntimeException);
+ virtual ::com::sun::star::uno::Reference< ::com::sun::star::text::XTextTableCursor > SAL_CALL createCursorByCellName( const OUString& aCellName )
+ throw (::com::sun::star::uno::RuntimeException,
+ std::exception);
//XTextContent
virtual void SAL_CALL attach(const ::com::sun::star::uno::Reference< ::com::sun::star::text::XTextRange > & xTextRange) throw( ::com::sun::star::lang::IllegalArgumentException, ::com::sun::star::uno::RuntimeException );
diff --git a/sw/source/core/unocore/unotbl.cxx b/sw/source/core/unocore/unotbl.cxx
index 3e555e7dae49..8c336961f4c3 100644
--- a/sw/source/core/unocore/unotbl.cxx
+++ b/sw/source/core/unocore/unotbl.cxx
@@ -2320,7 +2320,7 @@ uno::Sequence< OUString > SwXTextTable::getCellNames(void) throw( uno::RuntimeEx
}
uno::Reference< text::XTextTableCursor > SwXTextTable::createCursorByCellName(const OUString& CellName)
- throw( uno::RuntimeException )
+ throw (uno::RuntimeException, std::exception)
{
SolarMutexGuard aGuard;
uno::Reference< text::XTextTableCursor > xRet;