diff options
author | Caolán McNamara <caolanm@redhat.com> | 2016-08-31 21:50:45 +0100 |
---|---|---|
committer | Caolán McNamara <caolanm@redhat.com> | 2016-09-01 10:40:14 +0100 |
commit | 2ff52852a267f6a7c63d00291bc38677916d39c5 (patch) | |
tree | 372023cf9ac25fc616ab843336fd598f4cd8443d /dbaccess | |
parent | 8f7886c742cae5e012e52029c20925aa7b0fb6ea (diff) |
coverity#1372395 Uncaught exception
Change-Id: Ia384d4f7186e3ea870a6bb06fb8227ae0321715e
Diffstat (limited to 'dbaccess')
-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 5b10f355cfb5..9da09584b41e 100644 --- a/dbaccess/source/core/api/CacheSet.cxx +++ b/dbaccess/source/core/api/CacheSet.cxx @@ -528,7 +528,7 @@ void SAL_CALL OCacheSet::afterLast( ) throw(SQLException, RuntimeException) m_xDriverSet->afterLast(); } -bool SAL_CALL OCacheSet::first( ) throw(SQLException, RuntimeException) +bool SAL_CALL OCacheSet::first() throw(SQLException, RuntimeException, std::exception) { m_bInserted = m_bUpdated = m_bDeleted = false; return m_xDriverSet->first(); diff --git a/dbaccess/source/core/api/CacheSet.hxx b/dbaccess/source/core/api/CacheSet.hxx index dd9e5e647b80..95b6cd5a8b91 100644 --- a/dbaccess/source/core/api/CacheSet.hxx +++ b/dbaccess/source/core/api/CacheSet.hxx @@ -105,7 +105,7 @@ namespace dbaccess virtual bool SAL_CALL isAfterLast( ) throw(css::sdbc::SQLException, css::uno::RuntimeException); 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 first() throw(css::sdbc::SQLException, css::uno::RuntimeException, std::exception); 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); diff --git a/dbaccess/source/core/api/StaticSet.cxx b/dbaccess/source/core/api/StaticSet.cxx index 182d34c11244..58152b7a2f9c 100644 --- a/dbaccess/source/core/api/StaticSet.cxx +++ b/dbaccess/source/core/api/StaticSet.cxx @@ -148,7 +148,7 @@ void SAL_CALL OStaticSet::afterLast( ) throw(SQLException, RuntimeException) m_aSetIter = m_aSet.end(); } -bool SAL_CALL OStaticSet::first( ) throw(SQLException, RuntimeException) +bool SAL_CALL OStaticSet::first() throw(SQLException, RuntimeException, std::exception) { m_bInserted = m_bUpdated = m_bDeleted = false; m_aSetIter = m_aSet.begin()+1; diff --git a/dbaccess/source/core/api/StaticSet.hxx b/dbaccess/source/core/api/StaticSet.hxx index e18453e5b2bb..8c23e7dde8c4 100644 --- a/dbaccess/source/core/api/StaticSet.hxx +++ b/dbaccess/source/core/api/StaticSet.hxx @@ -57,7 +57,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, 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; |