diff options
author | Stephan Bergmann <sbergman@redhat.com> | 2016-07-15 12:29:52 +0200 |
---|---|---|
committer | Stephan Bergmann <sbergman@redhat.com> | 2016-07-15 12:29:52 +0200 |
commit | 8be8152bcb7327d046049dee640ca438deaa4dad (patch) | |
tree | 3bf9413c278f0c38df50b0513d5ce867c7debc1a /mysqlc | |
parent | 8969af9e29bff94708093ac1a8dc15d5ef9c480b (diff) |
loplugin:unnecessaryoverride in mysqlc
Change-Id: I7c8ecc8f675abf4495c991bdb680e31b59421e26
Diffstat (limited to 'mysqlc')
-rw-r--r-- | mysqlc/source/mysqlc_preparedstatement.cxx | 18 | ||||
-rw-r--r-- | mysqlc/source/mysqlc_preparedstatement.hxx | 9 |
2 files changed, 3 insertions, 24 deletions
diff --git a/mysqlc/source/mysqlc_preparedstatement.cxx b/mysqlc/source/mysqlc_preparedstatement.cxx index 5bd8a7e4bce7..df384d81a2f8 100644 --- a/mysqlc/source/mysqlc_preparedstatement.cxx +++ b/mysqlc/source/mysqlc_preparedstatement.cxx @@ -229,24 +229,6 @@ Reference< XConnection > SAL_CALL OPreparedStatement::getConnection() return m_pConnection; } -Reference< XResultSet > SAL_CALL OPreparedStatement::executeQuery(const rtl::OUString& sql) - throw(SQLException, RuntimeException, std::exception) -{ - return OCommonStatement::executeQuery( sql ); -} - -sal_Int32 SAL_CALL OPreparedStatement::executeUpdate(const rtl::OUString& sql) - throw(SQLException, RuntimeException, std::exception) -{ - return OCommonStatement::executeUpdate( sql ); -} - -sal_Bool SAL_CALL OPreparedStatement::execute( const rtl::OUString& sql ) - throw(SQLException, RuntimeException, std::exception) -{ - return OCommonStatement::execute( sql ); -} - Reference< XResultSet > SAL_CALL OPreparedStatement::executeQuery() throw(SQLException, RuntimeException, std::exception) { diff --git a/mysqlc/source/mysqlc_preparedstatement.hxx b/mysqlc/source/mysqlc_preparedstatement.hxx index d5c657dae9d8..511e89e88b06 100644 --- a/mysqlc/source/mysqlc_preparedstatement.hxx +++ b/mysqlc/source/mysqlc_preparedstatement.hxx @@ -90,12 +90,9 @@ namespace connectivity Reference< css::sdbc::XConnection > SAL_CALL getConnection() throw(SQLException, RuntimeException, std::exception) SAL_OVERRIDE; // XStatement - css::uno::Reference< css::sdbc::XResultSet > SAL_CALL executeQuery(const rtl::OUString& sql) - throw(SQLException, RuntimeException, std::exception) SAL_OVERRIDE; - sal_Int32 SAL_CALL executeUpdate(const rtl::OUString& sql) - throw(SQLException, RuntimeException, std::exception) SAL_OVERRIDE; - sal_Bool SAL_CALL execute( const rtl::OUString& sql ) - throw(SQLException, RuntimeException, std::exception) SAL_OVERRIDE; + using OCommonStatement::executeQuery; + using OCommonStatement::executeUpdate; + using OCommonStatement::execute; // XParameters void SAL_CALL setNull(sal_Int32 parameter, sal_Int32 sqlType) throw(SQLException, RuntimeException, std::exception) SAL_OVERRIDE; |