From 1cfa1d9e1041b0e82d9be90847c428adfd01476e Mon Sep 17 00:00:00 2001 From: Noel Grandin Date: Wed, 7 Nov 2018 16:48:42 +0200 Subject: loplugin:unusedfields Change-Id: Id16846c19c57ec437a64146d0fa771c1bfc05135 Reviewed-on: https://gerrit.libreoffice.org/63028 Tested-by: Jenkins Reviewed-by: Noel Grandin --- connectivity/source/drivers/mysqlc/mysqlc_resultset.cxx | 3 +-- connectivity/source/drivers/mysqlc/mysqlc_resultset.hxx | 2 -- 2 files changed, 1 insertion(+), 4 deletions(-) (limited to 'connectivity') diff --git a/connectivity/source/drivers/mysqlc/mysqlc_resultset.cxx b/connectivity/source/drivers/mysqlc/mysqlc_resultset.cxx index b3a172f0c2de..01c1889f4681 100644 --- a/connectivity/source/drivers/mysqlc/mysqlc_resultset.cxx +++ b/connectivity/source/drivers/mysqlc/mysqlc_resultset.cxx @@ -118,13 +118,12 @@ OResultSet::OResultSet(OConnection& rConn, OCommonStatement* pStmt, MYSQL_RES* p rtl_TextEncoding _encoding) : OResultSet_BASE(m_aMutex) , OPropertySetHelper(OResultSet_BASE::rBHelper) - , m_rConnection(rConn) , m_pMysql(rConn.getMysqlConnection()) , m_aStatement(static_cast(pStmt)) , m_pResult(pResult) , m_encoding(_encoding) { - m_xMetaData = new OResultSetMetaData(m_rConnection, m_pResult); + m_xMetaData = new OResultSetMetaData(rConn, m_pResult); } void OResultSet::ensureResultFetched() diff --git a/connectivity/source/drivers/mysqlc/mysqlc_resultset.hxx b/connectivity/source/drivers/mysqlc/mysqlc_resultset.hxx index 3241420aa3f6..e3fb1994cc15 100644 --- a/connectivity/source/drivers/mysqlc/mysqlc_resultset.hxx +++ b/connectivity/source/drivers/mysqlc/mysqlc_resultset.hxx @@ -62,8 +62,6 @@ class OResultSet final : public OBase_Mutex, public ::cppu::OPropertySetHelper, public OPropertyArrayUsageHelper { - OConnection& m_rConnection; - using DataFields = std::vector; std::vector m_aRows; std::vector m_aFields; -- cgit