summaryrefslogtreecommitdiff
path: root/accessibility/source
diff options
context:
space:
mode:
authorJulien Nabet <serval2412@yahoo.fr>2023-07-18 16:28:08 +0200
committerJulien Nabet <serval2412@yahoo.fr>2023-07-19 14:53:12 +0200
commit7835f97113460922cfe14685baa7bcaea2de736a (patch)
tree4027260d9da75cddf618c8d58eca5a8153c34510 /accessibility/source
parent6819adb7a66a162f5be40990ea62689cd58f7c8b (diff)
add IndexHint -1 for 2 commitEvent methods in accessibility
Change-Id: I3a2d4e0935d48e8d7ff57745dc05aa3e85bd0bdc Reviewed-on: https://gerrit.libreoffice.org/c/core/+/154590 Tested-by: Jenkins Reviewed-by: Julien Nabet <serval2412@yahoo.fr>
Diffstat (limited to 'accessibility/source')
-rw-r--r--accessibility/source/extended/AccessibleBrowseBoxBase.cxx6
-rw-r--r--accessibility/source/extended/AccessibleGridControlBase.cxx6
2 files changed, 2 insertions, 10 deletions
diff --git a/accessibility/source/extended/AccessibleBrowseBoxBase.cxx b/accessibility/source/extended/AccessibleBrowseBoxBase.cxx
index a3b0b0891c53..60d4eb805a67 100644
--- a/accessibility/source/extended/AccessibleBrowseBoxBase.cxx
+++ b/accessibility/source/extended/AccessibleBrowseBoxBase.cxx
@@ -422,11 +422,7 @@ void AccessibleBrowseBoxBase::commitEvent(
return;
// build an event object
- AccessibleEventObject aEvent;
- aEvent.Source = *this;
- aEvent.EventId = _nEventId;
- aEvent.OldValue = _rOldValue;
- aEvent.NewValue = _rNewValue;
+ AccessibleEventObject aEvent(*this, _nEventId, _rOldValue, _rNewValue, -1);
// let the notifier handle this event
diff --git a/accessibility/source/extended/AccessibleGridControlBase.cxx b/accessibility/source/extended/AccessibleGridControlBase.cxx
index 37e3235ee711..2be880e3e37f 100644
--- a/accessibility/source/extended/AccessibleGridControlBase.cxx
+++ b/accessibility/source/extended/AccessibleGridControlBase.cxx
@@ -344,11 +344,7 @@ void AccessibleGridControlBase::commitEvent(
return;
// build an event object
- AccessibleEventObject aEvent;
- aEvent.Source = *this;
- aEvent.EventId = _nEventId;
- aEvent.OldValue = _rOldValue;
- aEvent.NewValue = _rNewValue;
+ AccessibleEventObject aEvent(*this, _nEventId, _rOldValue, _rNewValue, -1);
// let the notifier handle this event