From 9e0b3423f21c23a8ef2fe749ea7dd7c1194c2f9a Mon Sep 17 00:00:00 2001 From: Noel Grandin Date: Tue, 27 Aug 2019 11:06:41 +0200 Subject: loplugin:referencecasting find more redundant static_cast Change-Id: I3a51812bbd3fcdc6b11e47cb12962f0d4fa7a2ae Reviewed-on: https://gerrit.libreoffice.org/78191 Tested-by: Jenkins Reviewed-by: Noel Grandin --- connectivity/source/commontools/dbexception.cxx | 2 +- connectivity/source/drivers/jdbc/JConnection.cxx | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) (limited to 'connectivity') diff --git a/connectivity/source/commontools/dbexception.cxx b/connectivity/source/commontools/dbexception.cxx index c5557ac43e24..9d4d9e7a83d3 100644 --- a/connectivity/source/commontools/dbexception.cxx +++ b/connectivity/source/commontools/dbexception.cxx @@ -247,7 +247,7 @@ SQLExceptionIteratorHelper::SQLExceptionIteratorHelper( const SQLExceptionInfo& { if ( _rChainStart.isValid() ) { - m_pCurrent = static_cast(_rChainStart); + m_pCurrent = _rChainStart; m_eCurrentType = _rChainStart.getType(); } } diff --git a/connectivity/source/drivers/jdbc/JConnection.cxx b/connectivity/source/drivers/jdbc/JConnection.cxx index 4c600cf2e767..e9109a7d7e0f 100644 --- a/connectivity/source/drivers/jdbc/JConnection.cxx +++ b/connectivity/source/drivers/jdbc/JConnection.cxx @@ -535,7 +535,7 @@ Any SAL_CALL java_sql_Connection::getWarnings( ) if( out ) { java_sql_SQLWarning_BASE warn_base(t.pEnv, out); - SQLException aAsException( static_cast< css::sdbc::SQLException >( java_sql_SQLWarning( warn_base, *this ) ) ); + SQLException aAsException( java_sql_SQLWarning( warn_base, *this ) ); // translate to warning SQLWarning aWarning; -- cgit