summaryrefslogtreecommitdiff
path: root/winaccessibility
diff options
context:
space:
mode:
authorMichael Weghorn <m.weghorn@posteo.de>2024-04-23 09:26:34 +0100
committerMichael Weghorn <m.weghorn@posteo.de>2024-04-23 20:52:57 +0200
commit31a4062bc0f3a751d3758a2d9b3ebb4fe9010590 (patch)
tree63e3f04852e60c1d2fc06effc345caf27a882363 /winaccessibility
parentb97ff95cc2ef4c1da83c5889690b7a703f5c0699 (diff)
wina11y: Use AccessibleRelationType::MEMBER_OF constant
... instead of hard-coded 7. Change-Id: I2ac44719043c827ce2a65687be021d7f823898d0 Reviewed-on: https://gerrit.libreoffice.org/c/core/+/166505 Reviewed-by: Michael Weghorn <m.weghorn@posteo.de> Tested-by: Jenkins
Diffstat (limited to 'winaccessibility')
-rw-r--r--winaccessibility/source/UAccCOM/MAccessible.cxx4
1 files changed, 2 insertions, 2 deletions
diff --git a/winaccessibility/source/UAccCOM/MAccessible.cxx b/winaccessibility/source/UAccCOM/MAccessible.cxx
index 3f261e9d4bd7..8694ef418bbc 100644
--- a/winaccessibility/source/UAccCOM/MAccessible.cxx
+++ b/winaccessibility/source/UAccCOM/MAccessible.cxx
@@ -1792,7 +1792,7 @@ static XAccessible* getTheParentOfMember(XAccessible* pXAcc)
for(sal_Int32 i=0 ; i<nRelations ; i++)
{
AccessibleRelation accRelation = pRrelationSet->getRelation(i);
- if(accRelation.RelationType == 7)
+ if (accRelation.RelationType == AccessibleRelationType::MEMBER_OF)
{
Sequence< Reference< XInterface > > xTargets = accRelation.TargetSet;
return static_cast<XAccessible*>(xTargets[0].get());
@@ -1861,7 +1861,7 @@ COM_DECLSPEC_NOTHROW STDMETHODIMP CMAccessible::get_groupPosition(long __RPC_FAR
for(int i=0 ; i<nRel ; i++)
{
AccessibleRelation accRelation = pRrelationSet->getRelation(i);
- if(accRelation.RelationType == 7)
+ if (accRelation.RelationType == AccessibleRelationType::MEMBER_OF)
{
Sequence< Reference< XInterface > > xTargets = accRelation.TargetSet;