mirror of
https://github.com/RGBCube/serenity
synced 2025-05-31 05:08:13 +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:
parent
3f3f45580a
commit
c8585b77d2
86 changed files with 283 additions and 283 deletions
|
@ -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
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue