From 88cf5c115d3e8c8540ddb1f90f12434c2b4c014b Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Caol=C3=A1n=20McNamara?= Date: Tue, 10 Jun 2014 14:55:09 +0100 Subject: [PATCH] coverity#1213468 Uncaught exception Change-Id: I451b13be6b72925e4cfa0e66c5690eca22c54dad --- connectivity/source/drivers/odbc/OStatement.cxx | 3 ++- connectivity/source/inc/odbc/OStatement.hxx | 3 ++- 2 files changed, 4 insertions(+), 2 deletions(-) diff --git a/connectivity/source/drivers/odbc/OStatement.cxx b/connectivity/source/drivers/odbc/OStatement.cxx index bb143549bee0..246c057e519a 100644 --- a/connectivity/source/drivers/odbc/OStatement.cxx +++ b/connectivity/source/drivers/odbc/OStatement.cxx @@ -380,7 +380,8 @@ sal_Bool SAL_CALL OStatement_Base::execute( const OUString& sql ) throw(SQLExcep // getResultSet returns the current result as a ResultSet. It // returns NULL if the current result is not a ResultSet. -Reference< XResultSet > OStatement_Base::getResultSet (bool checkCount) throw( SQLException) +Reference< XResultSet > OStatement_Base::getResultSet(bool checkCount) + throw (SQLException, css::uno::RuntimeException) { ::osl::MutexGuard aGuard( m_aMutex ); checkDisposed(OStatement_BASE::rBHelper.bDisposed); diff --git a/connectivity/source/inc/odbc/OStatement.hxx b/connectivity/source/inc/odbc/OStatement.hxx index c0387806c915..5299382b748b 100644 --- a/connectivity/source/inc/odbc/OStatement.hxx +++ b/connectivity/source/inc/odbc/OStatement.hxx @@ -114,7 +114,8 @@ namespace connectivity // getResultSet returns the current result as a ResultSet. It // returns NULL if the current result is not a ResultSet. - ::com::sun::star::uno::Reference< ::com::sun::star::sdbc::XResultSet > getResultSet (bool checkCount) throw( ::com::sun::star::sdbc::SQLException); + css::uno::Reference getResultSet(bool checkCount) + throw (css::sdbc::SQLException, css::uno::RuntimeException); /** creates the driver specific resultset (factory) */