summaryrefslogtreecommitdiff
path: root/connectivity
diff options
context:
space:
mode:
authorStephan Bergmann <sbergman@redhat.com>2019-10-01 10:32:10 +0200
committerStephan Bergmann <sbergman@redhat.com>2019-10-01 16:51:08 +0200
commitf2bd7857acfbdeed47fa58df36690af9cf394768 (patch)
treee1eba06698497b022b28f5d5698d7cba45d6b15e /connectivity
parent6076335b06c3c67634b439b96cd32817ff77d0d9 (diff)
loplugin:redundantcast (clang-cl)
Change-Id: I3f66a7850b4604dee576aeb61a39c4e45563d0c1 Reviewed-on: https://gerrit.libreoffice.org/79930 Tested-by: Jenkins Reviewed-by: Stephan Bergmann <sbergman@redhat.com>
Diffstat (limited to 'connectivity')
-rw-r--r--connectivity/source/drivers/ado/AUsers.cxx2
-rw-r--r--connectivity/source/drivers/ado/AViews.cxx2
2 files changed, 2 insertions, 2 deletions
diff --git a/connectivity/source/drivers/ado/AUsers.cxx b/connectivity/source/drivers/ado/AUsers.cxx
index 9c39ade72749..2620e915a89e 100644
--- a/connectivity/source/drivers/ado/AUsers.cxx
+++ b/connectivity/source/drivers/ado/AUsers.cxx
@@ -60,7 +60,7 @@ sdbcx::ObjectType OUsers::appendObject( const OUString& _rForName, const Referen
if ( pUser == nullptr )
m_pCatalog->getConnection()->throwGenericSQLException( STR_INVALID_USER_DESCRIPTOR_ERROR,static_cast<XTypeProvider*>(this) );
- ADOUsers* pUsers = static_cast<ADOUsers*>(m_aCollection);
+ ADOUsers* pUsers = m_aCollection;
pUsers->Append(OLEVariant(pUser->getImpl()),OLEString(pUser->getPassword()).asBSTR());
return createObject( _rForName );
diff --git a/connectivity/source/drivers/ado/AViews.cxx b/connectivity/source/drivers/ado/AViews.cxx
index a778f6cc3f20..77cc5abfae0f 100644
--- a/connectivity/source/drivers/ado/AViews.cxx
+++ b/connectivity/source/drivers/ado/AViews.cxx
@@ -72,7 +72,7 @@ sdbcx::ObjectType OViews::appendObject( const OUString& _rForName, const Referen
OUString sName( _rForName );
aCommand.put_Name(sName);
aCommand.put_CommandText(getString(descriptor->getPropertyValue(OMetaConnection::getPropMap().getNameByIndex(PROPERTY_ID_COMMAND))));
- ADOViews* pViews = static_cast<ADOViews*>(m_aCollection);
+ ADOViews* pViews = m_aCollection;
if(FAILED(pViews->Append(OLEString(sName).asBSTR(),aCommand)))
ADOS::ThrowException(*m_pCatalog->getConnection()->getConnection(),static_cast<XTypeProvider*>(this));