diff options
Diffstat (limited to 'Userland/Utilities/xargs.cpp')
-rw-r--r-- | Userland/Utilities/xargs.cpp | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/Userland/Utilities/xargs.cpp b/Userland/Utilities/xargs.cpp index 2e6b7d138a..c53e94b0ba 100644 --- a/Userland/Utilities/xargs.cpp +++ b/Userland/Utilities/xargs.cpp @@ -27,9 +27,9 @@ bool read_items(FILE* fp, char entry_separator, Function<Decision(StringView)>); class ParsedInitialArguments { public: - ParsedInitialArguments(Vector<const char*>&, const StringView& placeholder); + ParsedInitialArguments(Vector<const char*>&, StringView placeholder); - void for_each_joined_argument(const StringView&, Function<void(const String&)>) const; + void for_each_joined_argument(StringView, Function<void(const String&)>) const; size_t size() const { return m_all_parts.size(); } @@ -244,7 +244,7 @@ bool run_command(Vector<char*>&& child_argv, bool verbose, bool is_stdin, int de return true; } -ParsedInitialArguments::ParsedInitialArguments(Vector<const char*>& arguments, const StringView& placeholder) +ParsedInitialArguments::ParsedInitialArguments(Vector<const char*>& arguments, StringView placeholder) { m_all_parts.ensure_capacity(arguments.size()); bool some_argument_has_placeholder = false; @@ -270,7 +270,7 @@ ParsedInitialArguments::ParsedInitialArguments(Vector<const char*>& arguments, c } } -void ParsedInitialArguments::for_each_joined_argument(const StringView& separator, Function<void(const String&)> callback) const +void ParsedInitialArguments::for_each_joined_argument(StringView separator, Function<void(const String&)> callback) const { StringBuilder builder; for (auto& parts : m_all_parts) { |