summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorCaolán McNamara <caolanm@redhat.com>2014-06-10 14:55:09 +0100
committerCaolán McNamara <caolanm@redhat.com>2014-06-10 16:08:03 +0100
commit88cf5c115d3e8c8540ddb1f90f12434c2b4c014b (patch)
treedf689486e5e2b508393ae0d96029cd8489018eb8
parent6542cffd0b899b913e4b837c668e9d78a8663c13 (diff)
coverity#1213468 Uncaught exception
Change-Id: I451b13be6b72925e4cfa0e66c5690eca22c54dad
-rw-r--r--connectivity/source/drivers/odbc/OStatement.cxx3
-rw-r--r--connectivity/source/inc/odbc/OStatement.hxx3
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<css::sdbc::XResultSet> getResultSet(bool checkCount)
+ throw (css::sdbc::SQLException, css::uno::RuntimeException);
/**
creates the driver specific resultset (factory)
*/