winaccessibility/source/service/AccObjectManagerAgent.cxx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)
New commits: commit d92b4dc5c9cfed8785f1c54217bc04bc20dc9681 Author: Michael Weghorn <m.wegh...@posteo.de> AuthorDate: Fri Jan 28 11:50:01 2022 +0000 Commit: Michael Weghorn <m.wegh...@posteo.de> CommitDate: Mon Jan 31 17:30:28 2022 +0100 wina11y: Drop unnecessary reinterpret_cast 'IMAccessible' derives from 'IAccessible2', which in turn derives from 'IAccessible', so there's no need for any explicit cast from 'IMAccessible*' to 'IAccessible*'. Change-Id: Id5ad2d778f040364a1a056916a0ad1fe306707e8 Reviewed-on: https://gerrit.libreoffice.org/c/core/+/129200 Tested-by: Jenkins Reviewed-by: Michael Weghorn <m.wegh...@posteo.de> diff --git a/winaccessibility/source/service/AccObjectManagerAgent.cxx b/winaccessibility/source/service/AccObjectManagerAgent.cxx index f28dd766b9e7..0299635a55ef 100644 --- a/winaccessibility/source/service/AccObjectManagerAgent.cxx +++ b/winaccessibility/source/service/AccObjectManagerAgent.cxx @@ -298,7 +298,7 @@ bool AccObjectManagerAgent::GetIAccessibleFromXAccessible( { if(pWinManager) { - *ppXI = reinterpret_cast<IAccessible*>(pWinManager->GetIMAccByXAcc(pXAcc)); + *ppXI = pWinManager->GetIMAccByXAcc(pXAcc); if(*ppXI) return true; }