From a9dcaba2d50fae9e6eb861dbf45ec9aa9e588a4a Mon Sep 17 00:00:00 2001 From: Caolán McNamara Date: Wed, 31 Aug 2016 21:55:12 +0100 Subject: coverity#1372400 Uncaught exception Change-Id: I2319602a3b04bc0c5a6d4082ac62f98f7a697cf8 --- dbaccess/source/core/api/KeySet.cxx | 2 +- dbaccess/source/core/api/KeySet.hxx | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) (limited to 'dbaccess') 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; -- cgit