mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2025-08-21 18:00:16 +00:00
grep: Simplify lambda signature for readability
Those 'optional' arguments are always supplied anyway. Making them compulsory means there's one thing fewer to keep track of.
This commit is contained in:
parent
18792a6305
commit
b9a270e5e7
Notes:
sideshowbarker
2024-07-19 01:59:31 +09:00
Author: https://github.com/BenWiederhake
Commit: b9a270e5e7
Pull-request: https://github.com/SerenityOS/serenity/pull/10798
Reviewed-by: https://github.com/BertalanD
Reviewed-by: https://github.com/bgianfo
Reviewed-by: https://github.com/nico
1 changed files with 1 additions and 1 deletions
|
@ -129,7 +129,7 @@ int main(int argc, char** argv)
|
|||
return 1;
|
||||
}
|
||||
|
||||
auto matches = [&](StringView str, StringView filename = "", bool print_filename = false, bool is_binary = false) {
|
||||
auto matches = [&](StringView str, StringView filename, bool print_filename, bool is_binary) {
|
||||
size_t last_printed_char_pos { 0 };
|
||||
if (is_binary && binary_mode == BinaryFileMode::Skip)
|
||||
return false;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue