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.kaganski@collabora.com>
Tested-by: Jenkins
Reviewed-by: Noel Grandin <noel.grandin@collabora.co.uk>
This commit is contained in:
Adesola Samuel 2024-11-01 14:26:13 +01:00 committed by Noel Grandin
parent 35dbbcefb2
commit 3b8d833dba

View file

@ -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)