Skip to content

Commit

Permalink
Use range-based loops on STL containers (#728)
Browse files Browse the repository at this point in the history
  • Loading branch information
tobiolo authored Oct 30, 2024
1 parent 45abbb4 commit 661ff57
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions src/document.h
Original file line number Diff line number Diff line change
Expand Up @@ -2315,8 +2315,9 @@ struct Document {
searchfilter = false;
scrolltoselection = true;
CollectCells(rootgrid);
loopv(i, itercells) itercells[i]->text.filtered =
!itercells[i]->text.lastedit.IsBetween(rangebegin, rangeend);
for (auto *c : itercells) {
c->text.filtered = !c->text.lastedit.IsBetween(rangebegin, rangeend);
}
rootgrid->ResetChildren();
Refresh();
}
Expand Down

0 comments on commit 661ff57

Please sign in to comment.