diff options
author | Noel Grandin <noelgrandin@gmail.com> | 2021-12-16 16:08:48 +0200 |
---|---|---|
committer | Noel Grandin <noel.grandin@collabora.co.uk> | 2021-12-17 07:26:25 +0100 |
commit | 7994791e0a3681d46d8b257f09422b04deeae41c (patch) | |
tree | e04944776200e5bad5ac80618aaf3270a23c26d6 /linguistic | |
parent | 134425eb98147d197833cb4ef7bb4d8c3d7fd2bc (diff) |
use more OInterfaceContainer3::notifyEach
Change-Id: I0dd6e9f1514792e73a31e81896d09c27c1912318
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/126966
Tested-by: Jenkins
Reviewed-by: Noel Grandin <noel.grandin@collabora.co.uk>
Diffstat (limited to 'linguistic')
-rw-r--r-- | linguistic/source/lngopt.cxx | 8 |
1 files changed, 1 insertions, 7 deletions
diff --git a/linguistic/source/lngopt.cxx b/linguistic/source/lngopt.cxx index f176735f37cf..1b36c43c3075 100644 --- a/linguistic/source/lngopt.cxx +++ b/linguistic/source/lngopt.cxx @@ -195,13 +195,7 @@ void LinguProps::launchEvent( const PropertyChangeEvent &rEvt ) const comphelper::OInterfaceContainerHelper3<XPropertyChangeListener> *pContainer = aPropListeners.getContainer( rEvt.PropertyHandle ); if (pContainer) - { - comphelper::OInterfaceIteratorHelper3 aIt( *pContainer ); - while (aIt.hasMoreElements()) - { - aIt.next()->propertyChange( rEvt ); - } - } + pContainer->notifyEach( &XPropertyChangeListener::propertyChange, rEvt ); } Reference< XPropertySetInfo > SAL_CALL LinguProps::getPropertySetInfo() |