From 8be8152bcb7327d046049dee640ca438deaa4dad Mon Sep 17 00:00:00 2001 From: Stephan Bergmann Date: Fri, 15 Jul 2016 12:29:52 +0200 Subject: loplugin:unnecessaryoverride in mysqlc Change-Id: I7c8ecc8f675abf4495c991bdb680e31b59421e26 --- mysqlc/source/mysqlc_preparedstatement.cxx | 18 ------------------ mysqlc/source/mysqlc_preparedstatement.hxx | 9 +++------ 2 files changed, 3 insertions(+), 24 deletions(-) (limited to 'mysqlc') 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; -- cgit