diff options
author | Caolán McNamara <caolanm@redhat.com> | 2016-08-31 21:55:12 +0100 |
---|---|---|
committer | Caolán McNamara <caolanm@redhat.com> | 2016-09-01 10:40:14 +0100 |
commit | a9dcaba2d50fae9e6eb861dbf45ec9aa9e588a4a (patch) | |
tree | 2f490c9e7cb025b2ad4263e6cb329adfa5d00a3e /dbaccess | |
parent | 6ce409bd9cfdda559aa86082896df51dfc5556ee (diff) |
coverity#1372400 Uncaught exception
Change-Id: I2319602a3b04bc0c5a6d4082ac62f98f7a697cf8
Diffstat (limited to 'dbaccess')
-rw-r--r-- | dbaccess/source/core/api/KeySet.cxx | 2 | ||||
-rw-r--r-- | dbaccess/source/core/api/KeySet.hxx | 2 |
2 files changed, 2 insertions, 2 deletions
diff --git a/dbaccess/source/core/api/KeySet.cxx b/dbaccess/source/core/api/KeySet.cxx index 7b9aa47b86c3..917f78bae335 100644 --- a/dbaccess/source/core/api/KeySet.cxx +++ b/dbaccess/source/core/api/KeySet.cxx @@ -1059,7 +1059,7 @@ void SAL_CALL OKeySet::afterLast( ) throw(SQLException, RuntimeException) invalidateRow(); } -bool SAL_CALL OKeySet::first( ) throw(SQLException, RuntimeException) +bool SAL_CALL OKeySet::first() throw(SQLException, RuntimeException, std::exception) { m_bInserted = m_bUpdated = m_bDeleted = false; m_aKeyIter = m_aKeyMap.begin(); diff --git a/dbaccess/source/core/api/KeySet.hxx b/dbaccess/source/core/api/KeySet.hxx index ff1ee7a2206a..5c3fa2b67f7a 100644 --- a/dbaccess/source/core/api/KeySet.hxx +++ b/dbaccess/source/core/api/KeySet.hxx @@ -190,7 +190,7 @@ namespace dbaccess virtual bool SAL_CALL isAfterLast( ) throw(css::sdbc::SQLException, css::uno::RuntimeException) override; virtual void SAL_CALL beforeFirst( ) throw(css::sdbc::SQLException, css::uno::RuntimeException) override; virtual void SAL_CALL afterLast( ) throw(css::sdbc::SQLException, css::uno::RuntimeException) override; - virtual bool SAL_CALL first( ) throw(css::sdbc::SQLException, css::uno::RuntimeException) override; + virtual bool SAL_CALL first() throw(css::sdbc::SQLException, css::uno::RuntimeException, std::exception) override; virtual bool SAL_CALL last( ) throw(css::sdbc::SQLException, css::uno::RuntimeException) override; virtual sal_Int32 SAL_CALL getRow( ) throw(css::sdbc::SQLException, css::uno::RuntimeException) override; virtual bool SAL_CALL absolute( sal_Int32 row ) throw(css::sdbc::SQLException, css::uno::RuntimeException) override; |