summaryrefslogtreecommitdiff
path: root/winaccessibility
diff options
context:
space:
mode:
authorMichael Weghorn <m.weghorn@posteo.de>2024-08-20 13:31:06 +0100
committerMichael Weghorn <m.weghorn@posteo.de>2024-08-21 07:47:12 +0200
commit353436b265d5e734a3f1a7d5e08d73c88dafb03d (patch)
treebb6166f88ea9c5c26309506bcc0978de84c8aa47 /winaccessibility
parent04b526f17ac60cbd4a3b743be335606ee4e7994e (diff)
wina11y: Drop duplicate check for a11y context
The first thing that `AccTopWindowListener::AddAllListeners` does is to retrieve the accessible context and it returns if it's not valid, so there's no need to do check that already before calling the method. Change-Id: Ie825a9694b5c94bc9f9f2917ba5ae85e50670a66 Reviewed-on: https://gerrit.libreoffice.org/c/core/+/172120 Tested-by: Jenkins Reviewed-by: Michael Weghorn <m.weghorn@posteo.de>
Diffstat (limited to 'winaccessibility')
-rw-r--r--winaccessibility/source/service/AccTopWindowListener.cxx7
1 files changed, 1 insertions, 6 deletions
diff --git a/winaccessibility/source/service/AccTopWindowListener.cxx b/winaccessibility/source/service/AccTopWindowListener.cxx
index 902fb24c71c1..0f403f3969d6 100644
--- a/winaccessibility/source/service/AccTopWindowListener.cxx
+++ b/winaccessibility/source/service/AccTopWindowListener.cxx
@@ -165,12 +165,7 @@ void AccTopWindowListener::AddAllListeners(css::accessibility::XAccessible* pAcc
= pAccessibleContext->getAccessibleChild(i);
if (xAccessible.is())
- {
- Reference<css::accessibility::XAccessibleContext> xAccessibleContext
- = xAccessible->getAccessibleContext();
- if (xAccessibleContext.is())
- AddAllListeners(xAccessible.get(), pAccessible, pWND);
- }
+ AddAllListeners(xAccessible.get(), pAccessible, pWND);
}
}