[Libreoffice-commits] core.git: connectivity/source
Stephan Bergmann (via logerrit)
logerrit at kemper.freedesktop.org
Tue Oct 1 14:52:00 UTC 2019
connectivity/source/drivers/ado/AUsers.cxx | 2 +-
connectivity/source/drivers/ado/AViews.cxx | 2 +-
2 files changed, 2 insertions(+), 2 deletions(-)
New commits:
commit f2bd7857acfbdeed47fa58df36690af9cf394768
Author: Stephan Bergmann <sbergman at redhat.com>
AuthorDate: Tue Oct 1 10:32:10 2019 +0200
Commit: Stephan Bergmann <sbergman at redhat.com>
CommitDate: Tue Oct 1 16:51:08 2019 +0200
loplugin:redundantcast (clang-cl)
Change-Id: I3f66a7850b4604dee576aeb61a39c4e45563d0c1
Reviewed-on: https://gerrit.libreoffice.org/79930
Tested-by: Jenkins
Reviewed-by: Stephan Bergmann <sbergman at redhat.com>
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));
More information about the Libreoffice-commits
mailing list