summaryrefslogtreecommitdiff
path: root/ucbhelper
diff options
context:
space:
mode:
authorNoel Grandin <noelgrandin@gmail.com>2023-05-05 21:00:24 +0200
committerNoel Grandin <noel.grandin@collabora.co.uk>2023-05-07 08:00:46 +0200
commit31e2b4746a4a5d7661c4aa8f6a4489e50982aede (patch)
tree51b30c8370df279acd636e599028d01b72cab5f1 /ucbhelper
parent50deb478e97aa9cfd023c5fa2f9d567b0b5797c2 (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 'ucbhelper')
-rw-r--r--ucbhelper/source/provider/resultset.cxx6
1 files changed, 1 insertions, 5 deletions
diff --git a/ucbhelper/source/provider/resultset.cxx b/ucbhelper/source/provider/resultset.cxx
index 1615c72ade3c..b443a32e1b39 100644
--- a/ucbhelper/source/provider/resultset.cxx
+++ b/ucbhelper/source/provider/resultset.cxx
@@ -1315,11 +1315,7 @@ void ResultSet::propertyChanged( const beans::PropertyChangeEvent& rEvt ) const
= m_pImpl->m_pPropertyChangeListeners->getContainer( aGuard, OUString() );
if ( pPropsContainer )
{
- comphelper::OInterfaceIteratorHelper4 aIter( aGuard, *pPropsContainer );
- while ( aIter.hasMoreElements() )
- {
- aIter.next()->propertyChange( rEvt );
- }
+ pPropsContainer->notifyEach( aGuard, &beans::XPropertyChangeListener::propertyChange, rEvt);
}
}