Everywhere: Use east const in more places

These changes are compatible with clang-format 16 and will be mandatory
when we eventually bump clang-format version. So, since there are no
real downsides, let's commit them now.
This commit is contained in:
Dan Klishch 2024-04-18 15:32:56 -04:00 committed by Tim Flynn
commit 5ed7cd6e32
Notes: sideshowbarker 2024-07-16 23:38:54 +09:00
175 changed files with 353 additions and 353 deletions

View file

@ -81,7 +81,7 @@ static Optional<Location> locate_hunk(Vector<StringView> const& content, Hunk co
line += prefix_fuzz;
// Ensure that all of the lines in the hunk match starting from 'line', ignoring the specified number of context lines.
return all_of(hunk.lines.begin() + prefix_fuzz, hunk.lines.end() - suffix_fuzz, [&](const Line& hunk_line) {
return all_of(hunk.lines.begin() + prefix_fuzz, hunk.lines.end() - suffix_fuzz, [&](Line const& hunk_line) {
// Ignore additions in our increment of line and comparison as they are not part of the 'original file'
if (hunk_line.operation == Line::Operation::Addition)
return true;