diff options
author | Noel Grandin <noelgrandin@gmail.com> | 2023-05-05 21:00:24 +0200 |
---|---|---|
committer | Noel Grandin <noel.grandin@collabora.co.uk> | 2023-05-07 08:00:46 +0200 |
commit | 31e2b4746a4a5d7661c4aa8f6a4489e50982aede (patch) | |
tree | 51b30c8370df279acd636e599028d01b72cab5f1 /sw | |
parent | 50deb478e97aa9cfd023c5fa2f9d567b0b5797c2 (diff) |
improve some usage of OInterfaceIteratorHelper4
we can drop the lock immediately after construction (since
the iterator holds a thread-safe COW link to the underlying listener
container)
Change-Id: I08f8fa9ed7393747938572097f3c25f5f3f847fa
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/151440
Tested-by: Jenkins
Reviewed-by: Noel Grandin <noel.grandin@collabora.co.uk>
Diffstat (limited to 'sw')
-rw-r--r-- | sw/source/core/access/accmap.cxx | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/sw/source/core/access/accmap.cxx b/sw/source/core/access/accmap.cxx index 70cc1eb27929..fe0384ca0ea2 100644 --- a/sw/source/core/access/accmap.cxx +++ b/sw/source/core/access/accmap.cxx @@ -217,6 +217,7 @@ void SwDrawModellListener_Impl::Notify( SfxBroadcaster& /*rBC*/, { std::unique_lock g(maListenerMutex); ::comphelper::OInterfaceIteratorHelper4 aIter( g, maEventListeners ); + g.unlock(); while( aIter.hasMoreElements() ) { try |