summaryrefslogtreecommitdiff
path: root/toolkit/inc/controls
diff options
context:
space:
mode:
authorMichael Weghorn <m.weghorn@posteo.de>2024-12-12 11:39:59 +0100
committerMichael Weghorn <m.weghorn@posteo.de>2024-12-12 23:00:05 +0100
commitbbc2823f58aa2deab47be4951a43379d1228d251 (patch)
tree444945243d6190b74144c529ce19c52c300fdae6 /toolkit/inc/controls
parent6a68b96c6a449f3861cda5af8e77dbe15dcce5d6 (diff)
a11y: Move OCommonAccessibleComponent::m_aCreator to subclass
Move this member holding a weak reference to the XAccessible that created the context to the OAccessibleControlContext subclass, which is the only one making use of it now after previous commit Change-Id: I29fb7cd42512a02fc1cc56835bb83f847e9ec0fd Author: Michael Weghorn <m.weghorn@posteo.de> Date: Thu Dec 12 11:08:54 2024 +0100 tdf#164294 a11y: Don't rely on "creator" to determine child index This also removes the need to call OCommonAccessibleComponent::lateInit in those subclasses that did so previously. Change-Id: I3edd14810feb6c884b4e67db1f76b40ae003dffa Reviewed-on: https://gerrit.libreoffice.org/c/core/+/178355 Reviewed-by: Michael Weghorn <m.weghorn@posteo.de> Tested-by: Jenkins
Diffstat (limited to 'toolkit/inc/controls')
-rw-r--r--toolkit/inc/controls/accessiblecontrolcontext.hxx2
1 files changed, 2 insertions, 0 deletions
diff --git a/toolkit/inc/controls/accessiblecontrolcontext.hxx b/toolkit/inc/controls/accessiblecontrolcontext.hxx
index a61cf8a30227..e68236823113 100644
--- a/toolkit/inc/controls/accessiblecontrolcontext.hxx
+++ b/toolkit/inc/controls/accessiblecontrolcontext.hxx
@@ -96,6 +96,8 @@ namespace toolkit
m_xControlModel; // the model of the control which's context we implement
css::uno::Reference< css::beans::XPropertySetInfo >
m_xModelPropsInfo; // the cached property set info of the model
+ // the XAccessible which created our XAccessibleContext
+ css::uno::WeakReference<css::accessibility::XAccessible> m_aCreator;
};