diff options
author | Mike Kaganski <mike.kaganski@collabora.com> | 2021-10-29 09:36:18 +0300 |
---|---|---|
committer | Mike Kaganski <mike.kaganski@collabora.com> | 2021-10-30 08:02:12 +0200 |
commit | 04a2e941cf976894bb69e4d2e1d946a5e513225b (patch) | |
tree | 9d3fb145e29f330774746044adabdbde8a8d740f /eventattacher | |
parent | 00a76942e423589e3fdd4e059be753eab3393344 (diff) |
Prepare for removal of non-const operator[] from Sequence in eventattacher
Change-Id: I017a20ac21ebd832698bce14cc7f26c0c1c16ea7
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/124363
Tested-by: Jenkins
Reviewed-by: Mike Kaganski <mike.kaganski@collabora.com>
Diffstat (limited to 'eventattacher')
-rw-r--r-- | eventattacher/source/eventattacher.cxx | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/eventattacher/source/eventattacher.cxx b/eventattacher/source/eventattacher.cxx index 348e8d54f791..33c41a0f9d03 100644 --- a/eventattacher/source/eventattacher.cxx +++ b/eventattacher/source/eventattacher.cxx @@ -826,9 +826,10 @@ Sequence< Reference<XEventListener> > EventAttacherImpl::attachMultipleEventList { sal_Int32 nCount = aListeners.getLength(); Sequence< Reference<XAllListener> > aFilterListeners(nCount); + auto aFilterListenersRange = asNonConstRange(aFilterListeners); for (sal_Int32 i = 0; i < nCount; ++i) { - aFilterListeners[i] + aFilterListenersRange[i] = new FilterAllListenerImpl(this, aListeners[i].EventMethod, aListeners[i].AllListener); } |