mirror of
https://github.com/fergalmoran/ladybird.git
synced 2025-12-29 12:49:08 +00:00
Everywhere: Replace single-char StringView op. arguments with chars
This prevents us from needing a sv suffix, and potentially reduces the need to run generic code for a single character (as contains, starts_with, ends_with etc. for a char will be just a length and equality check). No functional changes.
This commit is contained in:
@@ -390,7 +390,7 @@ String Shell::local_variable_or(StringView name, String const& replacement) cons
|
||||
auto value = lookup_local_variable(name);
|
||||
if (value) {
|
||||
StringBuilder builder;
|
||||
builder.join(" ", value->resolve_as_list(*this));
|
||||
builder.join(' ', value->resolve_as_list(*this));
|
||||
return builder.to_string();
|
||||
}
|
||||
return replacement;
|
||||
@@ -839,7 +839,7 @@ ErrorOr<RefPtr<Job>> Shell::run_command(const AST::Command& command)
|
||||
close(sync_pipe[1]);
|
||||
|
||||
StringBuilder cmd;
|
||||
cmd.join(" ", command.argv);
|
||||
cmd.join(' ', command.argv);
|
||||
|
||||
auto command_copy = AST::Command(command);
|
||||
// Clear the next chain if it's to be immediately executed
|
||||
|
||||
Reference in New Issue
Block a user