From a7f6efc68ba97db98ebab9ebc473bffb8ded757f Mon Sep 17 00:00:00 2001 From: Noel Grandin Date: Mon, 18 Jan 2016 10:39:48 +0200 Subject: loplugin: unused return values Change-Id: I9c61a46c57894bc63a57740206c0bcb4a16553af Reviewed-on: https://gerrit.libreoffice.org/21571 Tested-by: Jenkins Reviewed-by: Noel Grandin --- mysqlc/source/mysqlc_resultset.hxx | 5 ----- mysqlc/source/mysqlc_resultsetmetadata.hxx | 4 ---- 2 files changed, 9 deletions(-) (limited to 'mysqlc') diff --git a/mysqlc/source/mysqlc_resultset.hxx b/mysqlc/source/mysqlc_resultset.hxx index d971461c7a85..ee92fccb3dd0 100644 --- a/mysqlc/source/mysqlc_resultset.hxx +++ b/mysqlc/source/mysqlc_resultset.hxx @@ -104,11 +104,6 @@ namespace connectivity OResultSet( OCommonStatement* pStmt, sql::ResultSet *result, rtl_TextEncoding _encoding ); - css::uno::Reference< css::uno::XInterface > operator *() - { - return css::uno::Reference< css::uno::XInterface >(*static_cast(this)); - } - // ::cppu::OComponentHelper void SAL_CALL disposing() SAL_OVERRIDE; diff --git a/mysqlc/source/mysqlc_resultsetmetadata.hxx b/mysqlc/source/mysqlc_resultsetmetadata.hxx index e79bb9be9422..65ea730264e3 100644 --- a/mysqlc/source/mysqlc_resultsetmetadata.hxx +++ b/mysqlc/source/mysqlc_resultsetmetadata.hxx @@ -56,10 +56,6 @@ namespace connectivity return rtl::OUString( _string.c_str(), _string.size(), m_encoding ); } - /// Avoid ambigous cast error from the compiler. - inline operator css::uno::Reference< css::sdbc::XResultSetMetaData > () throw() - { return this; } - sal_Int32 SAL_CALL getColumnCount() throw(SQLException, RuntimeException, std::exception) SAL_OVERRIDE; sal_Bool SAL_CALL isAutoIncrement(sal_Int32 column) throw(SQLException, RuntimeException, std::exception) SAL_OVERRIDE; -- cgit