From 65f007c629e5a7b2710e21e3f26164b433576e27 Mon Sep 17 00:00:00 2001 From: Noel Grandin Date: Sun, 26 Jan 2020 13:26:35 +0200 Subject: remove some unused local vars found by my new aggressive unused var plugin. these are unused return values from function calls Change-Id: I3359c583f535828f192cb833762dfedc008d82f0 Reviewed-on: https://gerrit.libreoffice.org/c/core/+/87439 Tested-by: Jenkins Reviewed-by: Noel Grandin --- connectivity/source/commontools/dbtools.cxx | 2 +- connectivity/source/commontools/predicateinput.cxx | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) (limited to 'connectivity') diff --git a/connectivity/source/commontools/dbtools.cxx b/connectivity/source/commontools/dbtools.cxx index 48384ef5e565..629c5cd074e2 100644 --- a/connectivity/source/commontools/dbtools.cxx +++ b/connectivity/source/commontools/dbtools.cxx @@ -452,7 +452,7 @@ static SharedConnection lcl_connectRowSet(const Reference< XRowSet>& _rxRowSet, { if ( _bAttachAutoDisposer ) { - rtl::Reference pAutoDispose = new OAutoConnectionDisposer( _rxRowSet, xConnection ); + new OAutoConnectionDisposer( _rxRowSet, xConnection ); } else xRowSetProps->setPropertyValue( diff --git a/connectivity/source/commontools/predicateinput.cxx b/connectivity/source/commontools/predicateinput.cxx index bfe19152f281..0b229aa9ec5a 100644 --- a/connectivity/source/commontools/predicateinput.cxx +++ b/connectivity/source/commontools/predicateinput.cxx @@ -302,7 +302,7 @@ namespace dbtools { // first try the international version OUString sSql = "SELECT * FROM x WHERE " + sField + _rPredicateValue; - std::unique_ptr pParseNode( const_cast< OSQLParser& >( m_aParser ).parseTree( sError, sSql, true ) ); + const_cast< OSQLParser& >( m_aParser ).parseTree( sError, sSql, true ); nType = DataType::DOUBLE; } -- cgit