summaryrefslogtreecommitdiff
path: root/Userland/Shell/Shell.cpp
diff options
context:
space:
mode:
authorAndreas Kling <kling@serenityos.org>2021-06-12 13:24:45 +0200
committerAndreas Kling <kling@serenityos.org>2021-06-12 13:24:45 +0200
commitdc65f54c065364225f0113a9339af72735547779 (patch)
tree60a8b9d37c6236748bfa310a564150d688595183 /Userland/Shell/Shell.cpp
parent7e1bffdeb85c832c7cea1a71e2c9e9ebe7ff96ae (diff)
downloadserenity-dc65f54c065364225f0113a9339af72735547779.zip
AK: Rename Vector::append(Vector) => Vector::extend(Vector)
Let's make it a bit more clear when we're appending the elements from one vector to the end of another vector.
Diffstat (limited to 'Userland/Shell/Shell.cpp')
-rw-r--r--Userland/Shell/Shell.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/Userland/Shell/Shell.cpp b/Userland/Shell/Shell.cpp
index d7069dd654..6f247d6485 100644
--- a/Userland/Shell/Shell.cpp
+++ b/Userland/Shell/Shell.cpp
@@ -269,7 +269,7 @@ Vector<String> Shell::expand_globs(Vector<StringView> path_segments, const Strin
if (!base.ends_with('/'))
builder.append('/');
builder.append(path);
- result.append(expand_globs(path_segments, builder.string_view()));
+ result.extend(expand_globs(path_segments, builder.string_view()));
}
}
@@ -589,7 +589,7 @@ RefPtr<Job> Shell::run_command(const AST::Command& command)
// If the command is empty, store the redirections and apply them to all later commands.
if (command.argv.is_empty() && !command.should_immediately_execute_next) {
- m_global_redirections.append(command.redirections);
+ m_global_redirections.extend(command.redirections);
for (auto& next_in_chain : command.next_chain)
run_tail(command, next_in_chain, last_return_code);
return nullptr;