diff options
author | Caolán McNamara <caolanm@redhat.com> | 2016-08-31 21:49:03 +0100 |
---|---|---|
committer | Caolán McNamara <caolanm@redhat.com> | 2016-09-01 10:40:14 +0100 |
commit | 8f7886c742cae5e012e52029c20925aa7b0fb6ea (patch) | |
tree | 0e60045eb1bad13a96a1c240b2e9e98edb78574c | |
parent | 3c50bae22266ee708e7e81cf0334d8944261a891 (diff) |
coverity#1372393 Uncaught exception
Change-Id: I310fb547b81d89e9000760f6628e07d2e5c7effc
-rw-r--r-- | dbaccess/source/core/api/CacheSet.cxx | 2 | ||||
-rw-r--r-- | dbaccess/source/core/api/CacheSet.hxx | 2 | ||||
-rw-r--r-- | dbaccess/source/core/api/StaticSet.cxx | 2 | ||||
-rw-r--r-- | dbaccess/source/core/api/StaticSet.hxx | 2 |
4 files changed, 4 insertions, 4 deletions
diff --git a/dbaccess/source/core/api/CacheSet.cxx b/dbaccess/source/core/api/CacheSet.cxx index 994274390c06..5b10f355cfb5 100644 --- a/dbaccess/source/core/api/CacheSet.cxx +++ b/dbaccess/source/core/api/CacheSet.cxx @@ -534,7 +534,7 @@ bool SAL_CALL OCacheSet::first( ) throw(SQLException, RuntimeException) return m_xDriverSet->first(); } -bool SAL_CALL OCacheSet::last( ) throw(SQLException, RuntimeException) +bool SAL_CALL OCacheSet::last() throw(SQLException, RuntimeException, std::exception) { m_bInserted = m_bUpdated = m_bDeleted = false; return m_xDriverSet->last(); diff --git a/dbaccess/source/core/api/CacheSet.hxx b/dbaccess/source/core/api/CacheSet.hxx index 8154741f0b5c..dd9e5e647b80 100644 --- a/dbaccess/source/core/api/CacheSet.hxx +++ b/dbaccess/source/core/api/CacheSet.hxx @@ -106,7 +106,7 @@ namespace dbaccess virtual void SAL_CALL beforeFirst( ) throw(css::sdbc::SQLException, css::uno::RuntimeException); virtual void SAL_CALL afterLast( ) throw(css::sdbc::SQLException, css::uno::RuntimeException); virtual bool SAL_CALL first( ) throw(css::sdbc::SQLException, css::uno::RuntimeException); - virtual bool SAL_CALL last( ) throw(css::sdbc::SQLException, css::uno::RuntimeException); + virtual bool SAL_CALL last() throw(css::sdbc::SQLException, css::uno::RuntimeException, std::exception); virtual sal_Int32 SAL_CALL getRow( ) throw(css::sdbc::SQLException, css::uno::RuntimeException); virtual bool SAL_CALL absolute( sal_Int32 row ) throw(css::sdbc::SQLException, css::uno::RuntimeException); virtual bool SAL_CALL previous( ) throw(css::sdbc::SQLException, css::uno::RuntimeException); diff --git a/dbaccess/source/core/api/StaticSet.cxx b/dbaccess/source/core/api/StaticSet.cxx index f83af066fb03..182d34c11244 100644 --- a/dbaccess/source/core/api/StaticSet.cxx +++ b/dbaccess/source/core/api/StaticSet.cxx @@ -158,7 +158,7 @@ bool SAL_CALL OStaticSet::first( ) throw(SQLException, RuntimeException) return m_aSetIter != m_aSet.end(); } -bool SAL_CALL OStaticSet::last( ) throw(SQLException, RuntimeException) +bool SAL_CALL OStaticSet::last() throw(SQLException, RuntimeException, std::exception) { m_bInserted = m_bUpdated = m_bDeleted = false; fillAllRows(); diff --git a/dbaccess/source/core/api/StaticSet.hxx b/dbaccess/source/core/api/StaticSet.hxx index f879bf1650d1..e18453e5b2bb 100644 --- a/dbaccess/source/core/api/StaticSet.hxx +++ b/dbaccess/source/core/api/StaticSet.hxx @@ -58,7 +58,7 @@ namespace dbaccess 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 last( ) throw(css::sdbc::SQLException, css::uno::RuntimeException) override; + virtual bool SAL_CALL last() throw(css::sdbc::SQLException, css::uno::RuntimeException, std::exception) 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; virtual bool SAL_CALL previous( ) throw(css::sdbc::SQLException, css::uno::RuntimeException) override; |