[Libreoffice-commits] core.git: mysqlc/source

Stephan Bergmann sbergman at redhat.com
Fri Jul 15 10:30:30 UTC 2016


 mysqlc/source/mysqlc_preparedstatement.cxx |   18 ------------------
 mysqlc/source/mysqlc_preparedstatement.hxx |    9 +++------
 2 files changed, 3 insertions(+), 24 deletions(-)

New commits:
commit 8be8152bcb7327d046049dee640ca438deaa4dad
Author: Stephan Bergmann <sbergman at redhat.com>
Date:   Fri Jul 15 12:29:52 2016 +0200

    loplugin:unnecessaryoverride in mysqlc
    
    Change-Id: I7c8ecc8f675abf4495c991bdb680e31b59421e26

diff --git a/mysqlc/source/mysqlc_preparedstatement.cxx b/mysqlc/source/mysqlc_preparedstatement.cxx
index 5bd8a7e..df384d8 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 d5c657d..511e89e 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;


More information about the Libreoffice-commits mailing list