tdf#145538: Use range based for loops

Change-Id: I6f8539869b991c2c71044e1a18dba69641ffabe8
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/177505
Tested-by: Jenkins
Reviewed-by: Hossein   <hossein@libreoffice.org>
This commit is contained in:
Simon Chenery 2024-11-28 20:43:19 +01:00 committed by Hossein
parent 6fa141074b
commit 7bd7adc338

View file

@ -555,9 +555,8 @@ static void lcl_collectAllPredOrSuccRanges(
return;
ScRange const & rFrontRange = rSrcRanges.front();
ScDetectiveFunc aDetFunc(rDoc, rFrontRange.aStart.Tab());
for (size_t i = 0, n = rSrcRanges.size(); i < n; ++i)
for (ScRange const & r : rSrcRanges)
{
ScRange const & r = rSrcRanges[i];
if (bPred)
{
aDetFunc.GetAllPreds(