summaryrefslogtreecommitdiff
path: root/configmgr
diff options
context:
space:
mode:
authorMichael Weghorn <m.weghorn@posteo.de>2023-10-27 15:24:46 +0100
committerMichael Weghorn <m.weghorn@posteo.de>2023-10-28 05:45:06 +0200
commit33061be5a7538409839dcca3116b9fa72629013f (patch)
tree3fd8a4c38bfae6d745124747e45548896ee23ee8 /configmgr
parent0775ae4dec529505e1d108b2806f90040721e054 (diff)
tdf#135586 wina11y: Make role mapping more explicit
The previous `ROLE_TABLE` looked like it might explicitly map the UNO role on the left-hand side to the IAccessible2 role on the right-hand side, and the comment also said so. In reality, the UNO role on the left hand side was not really accessed, but the assumption was that the index of each entry would correspond to the sal_Int16 value of the UNO role (`css::accessibility::AccessibleRole`). Make that mapping more explicit by replacing it with a helper function `lcl_mapToIAccessible2Role` and slightly simplify `AccObject::UpdateRole`. Change-Id: Id02553c4df042982f92fce3338077e95db687a83 Reviewed-on: https://gerrit.libreoffice.org/c/core/+/158572 Tested-by: Jenkins Reviewed-by: Michael Weghorn <m.weghorn@posteo.de>
Diffstat (limited to 'configmgr')
0 files changed, 0 insertions, 0 deletions