summaryrefslogtreecommitdiff
path: root/Userland
diff options
context:
space:
mode:
authorBen Wiederhake <BenWiederhake.GitHub@gmx.de>2021-11-05 00:18:12 +0100
committerBrian Gianforcaro <b.gianfo@gmail.com>2021-11-06 08:57:05 -0700
commitb9a270e5e7b7895c23f9bdd22f4a93015def80c7 (patch)
tree0e80423d0a0a71447e80bf9c4fbb8384873f2816 /Userland
parent18792a63050c50add03bb209d792e990721a5382 (diff)
downloadserenity-b9a270e5e7b7895c23f9bdd22f4a93015def80c7.zip
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.
Diffstat (limited to 'Userland')
-rw-r--r--Userland/Utilities/grep.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/Userland/Utilities/grep.cpp b/Userland/Utilities/grep.cpp
index e3a1a729e0..91de6dc2f0 100644
--- a/Userland/Utilities/grep.cpp
+++ b/Userland/Utilities/grep.cpp
@@ -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;