From b9a270e5e7b7895c23f9bdd22f4a93015def80c7 Mon Sep 17 00:00:00 2001 From: Ben Wiederhake Date: Fri, 5 Nov 2021 00:18:12 +0100 Subject: [PATCH] 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. --- Userland/Utilities/grep.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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;