svl/source/notify/SfxBroadcaster.cxx | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-)
New commits: commit ab4de498475930ba829a23262f82e32df36f1ea2 Author: Noel Grandin <noel.gran...@collabora.co.uk> AuthorDate: Fri Aug 11 14:23:34 2023 +0200 Commit: Noel Grandin <noel.gran...@collabora.co.uk> CommitDate: Fri Aug 11 17:42:53 2023 +0200 fix SfxBroadcaster::ForAllListeners regression from commit 7c66fc45239d2589e90fd694d54b3ff826b1bd15 Author: Noel Grandin <noel.gran...@collabora.co.uk> Date: Thu Jun 1 14:22:57 2023 +0200 use internal iterator for SfxBroadcaster Change-Id: Ibd3abf23337c8fb0937d245474f2b89c8936a3ff Reviewed-on: https://gerrit.libreoffice.org/c/core/+/155589 Tested-by: Jenkins Reviewed-by: Noel Grandin <noel.gran...@collabora.co.uk> diff --git a/svl/source/notify/SfxBroadcaster.cxx b/svl/source/notify/SfxBroadcaster.cxx index e9b0e1e1a552..419c535f56dc 100644 --- a/svl/source/notify/SfxBroadcaster.cxx +++ b/svl/source/notify/SfxBroadcaster.cxx @@ -137,7 +137,8 @@ void SfxBroadcaster::ForAllListeners(std::function<bool(SfxListener*)> f) const { SfxListener* const pListener = m_Listeners[i]; if (pListener) - f(pListener); + if (f(pListener)) + break; } }