summaryrefslogtreecommitdiff
path: root/svl
diff options
context:
space:
mode:
authorNoel Grandin <noel.grandin@collabora.co.uk>2023-08-11 14:23:34 +0200
committerNoel Grandin <noel.grandin@collabora.co.uk>2023-08-11 17:42:53 +0200
commitab4de498475930ba829a23262f82e32df36f1ea2 (patch)
treefd9b61307d4929879a2d3db63cc04b3274206bff /svl
parent5964796de82a4050081d25ab20151020de0a16cc (diff)
fix SfxBroadcaster::ForAllListeners
regression from commit 7c66fc45239d2589e90fd694d54b3ff826b1bd15 Author: Noel Grandin <noel.grandin@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.grandin@collabora.co.uk>
Diffstat (limited to 'svl')
-rw-r--r--svl/source/notify/SfxBroadcaster.cxx3
1 files changed, 2 insertions, 1 deletions
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;
}
}