[Libreoffice-commits] core.git: winaccessibility/source
Stephan Bergmann (via logerrit)
logerrit at kemper.freedesktop.org
Thu Sep 30 14:54:13 UTC 2021
winaccessibility/source/UAccCOM/AccRelation.cxx | 2 +-
winaccessibility/source/UAccCOM/AccTable.cxx | 6 +++---
winaccessibility/source/UAccCOM/MAccessible.cxx | 2 +-
3 files changed, 5 insertions(+), 5 deletions(-)
New commits:
commit 553dd28e2524603e87d65e62a819f554a9029e38
Author: Stephan Bergmann <sbergman at redhat.com>
AuthorDate: Thu Sep 30 12:40:43 2021 +0200
Commit: Stephan Bergmann <sbergman at redhat.com>
CommitDate: Thu Sep 30 16:53:38 2021 +0200
Extended loplugin:referencecasting/redundantcast (clang-cl): winaccessibility
Change-Id: I6de94437ed00b295be1c388ac4a2c0784dd3cc6b
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/122883
Tested-by: Jenkins
Reviewed-by: Stephan Bergmann <sbergman at redhat.com>
diff --git a/winaccessibility/source/UAccCOM/AccRelation.cxx b/winaccessibility/source/UAccCOM/AccRelation.cxx
index e2586ec5c183..5b5114eeba02 100644
--- a/winaccessibility/source/UAccCOM/AccRelation.cxx
+++ b/winaccessibility/source/UAccCOM/AccRelation.cxx
@@ -121,7 +121,7 @@ COM_DECLSPEC_NOTHROW STDMETHODIMP CAccRelation::get_target(long targetIndex, IUn
bool isGet = CMAccessible::get_IAccessibleFromXAccessible(xRAcc.get(), &pRet);
if(isGet)
{
- *target = /*(IAccessible2 *)*/static_cast<IUnknown*>(pRet);
+ *target = /*(IAccessible2 *)*/pRet;
pRet->AddRef();
return S_OK;
}
diff --git a/winaccessibility/source/UAccCOM/AccTable.cxx b/winaccessibility/source/UAccCOM/AccTable.cxx
index f32a8af0c435..ae9e152a499e 100644
--- a/winaccessibility/source/UAccCOM/AccTable.cxx
+++ b/winaccessibility/source/UAccCOM/AccTable.cxx
@@ -76,7 +76,7 @@ COM_DECLSPEC_NOTHROW STDMETHODIMP CAccTable::get_accessibleAt(long row, long col
bool isTRUE = CMAccessible::get_IAccessibleFromXAccessible(pRAcc.get(), &pRet);
if(isTRUE)
{
- *accessible = static_cast<IAccessible2 *>(pRet);
+ *accessible = pRet;
pRet->AddRef();
return S_OK;
}
@@ -89,7 +89,7 @@ COM_DECLSPEC_NOTHROW STDMETHODIMP CAccTable::get_accessibleAt(long row, long col
if(isTRUE)
{
- *accessible = static_cast<IAccessible2 *>(pRet);
+ *accessible = pRet;
pRet->AddRef();
return S_OK;
}
@@ -561,7 +561,7 @@ COM_DECLSPEC_NOTHROW STDMETHODIMP CAccTable::get_summary(IUnknown * * accessible
if(pRet)
{
- *accessible = static_cast<IAccessible2 *>(pRet);
+ *accessible = pRet;
pRet->AddRef();
return S_OK;
}
diff --git a/winaccessibility/source/UAccCOM/MAccessible.cxx b/winaccessibility/source/UAccCOM/MAccessible.cxx
index 631905ab8a64..7cb2ca2410ae 100644
--- a/winaccessibility/source/UAccCOM/MAccessible.cxx
+++ b/winaccessibility/source/UAccCOM/MAccessible.cxx
@@ -2986,7 +2986,7 @@ void CMAccessible::ConvertAnyToVariant(const css::uno::Any &rAnyVal, VARIANT *pv
pIAcc->AddRef();
pvData->vt = VT_UNKNOWN;
- pvData->pdispVal = static_cast<IAccessible2*>(pIAcc);
+ pvData->pdispVal = pIAcc;
break;
}
}
More information about the Libreoffice-commits
mailing list