summaryrefslogtreecommitdiff
path: root/svx/source/fmcomp
diff options
context:
space:
mode:
authorNoel Grandin <noelgrandin@gmail.com>2021-12-16 16:08:48 +0200
committerNoel Grandin <noel.grandin@collabora.co.uk>2021-12-17 07:26:25 +0100
commit7994791e0a3681d46d8b257f09422b04deeae41c (patch)
treee04944776200e5bad5ac80618aaf3270a23c26d6 /svx/source/fmcomp
parent134425eb98147d197833cb4ef7bb4d8c3d7fd2bc (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 'svx/source/fmcomp')
-rw-r--r--svx/source/fmcomp/gridcell.cxx9
1 files changed, 2 insertions, 7 deletions
diff --git a/svx/source/fmcomp/gridcell.cxx b/svx/source/fmcomp/gridcell.cxx
index bfe8ff4d6dcb..dfe43faf5963 100644
--- a/svx/source/fmcomp/gridcell.cxx
+++ b/svx/source/fmcomp/gridcell.cxx
@@ -4301,15 +4301,12 @@ IMPL_LINK(FmXListBoxCell, ChangedHdl, bool, bInteractive, void)
void FmXListBoxCell::OnDoubleClick()
{
- ::comphelper::OInterfaceIteratorHelper3 aIt( m_aActionListeners );
-
css::awt::ActionEvent aEvent;
aEvent.Source = *this;
weld::ComboBox& rBox = m_pBox->get_widget();
aEvent.ActionCommand = rBox.get_active_text();
- while( aIt.hasMoreElements() )
- aIt.next()->actionPerformed( aEvent );
+ m_aActionListeners.notifyEach( &css::awt::XActionListener::actionPerformed, aEvent );
}
FmXComboBoxCell::FmXComboBoxCell( DbGridColumn* pColumn, std::unique_ptr<DbCellControl> pControl )
@@ -4620,11 +4617,9 @@ void SAL_CALL FmXFilterCell::setMaxTextLen( sal_Int16 /*nLen*/ )
IMPL_LINK_NOARG(FmXFilterCell, OnCommit, DbFilterField&, void)
{
- ::comphelper::OInterfaceIteratorHelper3 aIt( m_aTextListeners );
css::awt::TextEvent aEvt;
aEvt.Source = *this;
- while( aIt.hasMoreElements() )
- aIt.next()->textChanged( aEvt );
+ m_aTextListeners.notifyEach( &css::awt::XTextListener::textChanged, aEvt );
}
/* vim:set shiftwidth=4 softtabstop=4 expandtab: */