svl/source/notify/SfxBroadcaster.cxx | 3 +++ 1 file changed, 3 insertions(+)
New commits: commit 3b8d833dba336e3baf3552e89aeb2695dad41960 Author: Adesola Samuel <adesolasamuel2...@outlook.com> AuthorDate: Fri Nov 1 14:26:13 2024 +0100 Commit: Noel Grandin <noel.gran...@collabora.co.uk> CommitDate: Sat Nov 2 12:05:45 2024 +0100 tdf#145538 Range based for loop cannot be used in SfxBroadcaster.cxx The loops in this file cannot be range-based because vectors can change size inside the loop. Change-Id: I0f3d3d768b69bb280962541a237f5ec02874dbdc Reviewed-on: https://gerrit.libreoffice.org/c/core/+/175866 Reviewed-by: Mike Kaganski <mike.kagan...@collabora.com> 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 a09de0377f81..8f30bbc8cd8f 100644 --- a/svl/source/notify/SfxBroadcaster.cxx +++ b/svl/source/notify/SfxBroadcaster.cxx @@ -27,6 +27,9 @@ #include <cassert> #include <vector> +// Note: The loops in this file cannot be range-based +// because vectors can change size during the loops. + // broadcast immediately void SfxBroadcaster::Broadcast(const SfxHint& rHint)