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 <sberg...@redhat.com> AuthorDate: Tue Oct 1 10:32:10 2019 +0200 Commit: Stephan Bergmann <sberg...@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 <sberg...@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)); _______________________________________________ Libreoffice-commits mailing list libreoffice-comm...@lists.freedesktop.org https://lists.freedesktop.org/mailman/listinfo/libreoffice-commits