summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMichael Weghorn <m.weghorn@posteo.de>2024-11-06 15:39:36 +0100
committerMichael Weghorn <m.weghorn@posteo.de>2024-11-07 08:49:22 +0100
commit355f6466dc13d2ebd7e8ba323df0da832b0ed096 (patch)
tree6bf3fd4b045bbce6b81a8acf868c38d5d1417356
parentd72dcbc4fcb7458955d8071f49d1a877a7d1d1a6 (diff)
editeng a11y: Drop "typedef std::pair<short int,short int> RD"
Use initializer syntax for the array elements. Change-Id: Ibe8dbc372cfb5f7134267f26d5bd27fd153a797b Reviewed-on: https://gerrit.libreoffice.org/c/core/+/176150 Tested-by: Jenkins Reviewed-by: Michael Weghorn <m.weghorn@posteo.de>
-rw-r--r--editeng/source/accessibility/AccessibleContextBase.cxx15
1 files changed, 7 insertions, 8 deletions
diff --git a/editeng/source/accessibility/AccessibleContextBase.cxx b/editeng/source/accessibility/AccessibleContextBase.cxx
index 8f2fbf6d4045..2b68e7f40e0b 100644
--- a/editeng/source/accessibility/AccessibleContextBase.cxx
+++ b/editeng/source/accessibility/AccessibleContextBase.cxx
@@ -132,14 +132,13 @@ void AccessibleContextBase::SetRelationSet (
{
// Try to emit some meaningful events indicating differing relations in
// both sets.
- typedef std::pair<short int,short int> RD;
- const RD aRelationDescriptors[] = {
- RD(AccessibleRelationType::CONTROLLED_BY, AccessibleEventId::CONTROLLED_BY_RELATION_CHANGED),
- RD(AccessibleRelationType::CONTROLLER_FOR, AccessibleEventId::CONTROLLER_FOR_RELATION_CHANGED),
- RD(AccessibleRelationType::LABELED_BY, AccessibleEventId::LABELED_BY_RELATION_CHANGED),
- RD(AccessibleRelationType::LABEL_FOR, AccessibleEventId::LABEL_FOR_RELATION_CHANGED),
- RD(AccessibleRelationType::MEMBER_OF, AccessibleEventId::MEMBER_OF_RELATION_CHANGED),
- RD(AccessibleRelationType::INVALID, -1),
+ const std::pair<short int, short int> aRelationDescriptors[] = {
+ { AccessibleRelationType::CONTROLLED_BY, AccessibleEventId::CONTROLLED_BY_RELATION_CHANGED },
+ { AccessibleRelationType::CONTROLLER_FOR, AccessibleEventId::CONTROLLER_FOR_RELATION_CHANGED },
+ { AccessibleRelationType::LABELED_BY, AccessibleEventId::LABELED_BY_RELATION_CHANGED },
+ { AccessibleRelationType::LABEL_FOR, AccessibleEventId::LABEL_FOR_RELATION_CHANGED },
+ { AccessibleRelationType::MEMBER_OF, AccessibleEventId::MEMBER_OF_RELATION_CHANGED },
+ { AccessibleRelationType::INVALID, -1},
};
for (int i=0; aRelationDescriptors[i].first!=AccessibleRelationType::INVALID; i++)
if (mxRelationSet->containsRelation(aRelationDescriptors[i].first)