summaryrefslogtreecommitdiff
path: root/Userland/Utilities/grep.cpp
diff options
context:
space:
mode:
authorSam Atkins <atkinssj@serenityos.org>2022-04-02 16:48:05 +0100
committerAndreas Kling <kling@serenityos.org>2022-04-11 21:09:42 +0200
commitf0aba519c33058f1ddbb0a63fe2a9c1efe646ac9 (patch)
tree78b8f5a8e127c3626150f9864a3eccba8ad4a8ea /Userland/Utilities/grep.cpp
parent84b67754c0026123236b7bbc88230d37000868de (diff)
downloadserenity-f0aba519c33058f1ddbb0a63fe2a9c1efe646ac9.zip
Utilities: Read positional arguments as Strings not char*s
This is a pretty trivial change so they're all batched together.
Diffstat (limited to 'Userland/Utilities/grep.cpp')
-rw-r--r--Userland/Utilities/grep.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/Userland/Utilities/grep.cpp b/Userland/Utilities/grep.cpp
index c9e3dd8116..fecbcd08df 100644
--- a/Userland/Utilities/grep.cpp
+++ b/Userland/Utilities/grep.cpp
@@ -39,11 +39,11 @@ ErrorOr<int> serenity_main(Main::Arguments args)
String program_name = AK::LexicalPath::basename(args.strings[0]);
- Vector<char const*> files;
+ Vector<String> files;
bool recursive = (program_name == "rgrep"sv);
bool use_ere = (program_name == "egrep"sv);
- Vector<char const*> patterns;
+ Vector<String> patterns;
BinaryFileMode binary_mode { BinaryFileMode::Binary };
bool case_insensitive = false;
bool line_numbers = false;