mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2025-08-01 13:49:16 +00:00
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:
parent
5ef6df79ed
commit
5ed7cd6e32
Notes:
sideshowbarker
2024-07-16 23:38:54 +09:00
Author: https://github.com/DanShaders
Commit: 5ed7cd6e32
Pull-request: https://github.com/SerenityOS/serenity/pull/24014
175 changed files with 353 additions and 353 deletions
|
@ -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;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue