sc/source/ui/docshell/docfunc.cxx | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-)
New commits: commit 7bd7adc3387714a2c9e6e663271c7b20708168c4 Author: Simon Chenery <simon_chen...@yahoo.com> AuthorDate: Thu Nov 28 20:43:19 2024 +0100 Commit: Hossein <hoss...@libreoffice.org> CommitDate: Fri Dec 6 16:14:29 2024 +0100 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 <hoss...@libreoffice.org> diff --git a/sc/source/ui/docshell/docfunc.cxx b/sc/source/ui/docshell/docfunc.cxx index d94763e9baba..e745b922315e 100644 --- a/sc/source/ui/docshell/docfunc.cxx +++ b/sc/source/ui/docshell/docfunc.cxx @@ -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(