summaryrefslogtreecommitdiff
path: root/winaccessibility
diff options
context:
space:
mode:
authorMichael Weghorn <m.weghorn@posteo.de>2022-01-28 11:50:01 +0000
committerMichael Weghorn <m.weghorn@posteo.de>2022-01-31 17:30:28 +0100
commitd92b4dc5c9cfed8785f1c54217bc04bc20dc9681 (patch)
treeb484e996f9e0ee1102e27f8b027dc572a14a2c5a /winaccessibility
parent1cdff0363727327d3bf0e7d5eb105e867ba2d806 (diff)
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.weghorn@posteo.de>
Diffstat (limited to 'winaccessibility')
-rw-r--r--winaccessibility/source/service/AccObjectManagerAgent.cxx2
1 files changed, 1 insertions, 1 deletions
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;
}