diff options
author | Andreas Kling <kling@serenityos.org> | 2021-06-12 13:24:45 +0200 |
---|---|---|
committer | Andreas Kling <kling@serenityos.org> | 2021-06-12 13:24:45 +0200 |
commit | dc65f54c065364225f0113a9339af72735547779 (patch) | |
tree | 60a8b9d37c6236748bfa310a564150d688595183 /Userland/Libraries/LibWasm | |
parent | 7e1bffdeb85c832c7cea1a71e2c9e9ebe7ff96ae (diff) | |
download | serenity-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/Libraries/LibWasm')
-rw-r--r-- | Userland/Libraries/LibWasm/Parser/Parser.cpp | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/Userland/Libraries/LibWasm/Parser/Parser.cpp b/Userland/Libraries/LibWasm/Parser/Parser.cpp index 370e9a6e76..b16ea72ada 100644 --- a/Userland/Libraries/LibWasm/Parser/Parser.cpp +++ b/Userland/Libraries/LibWasm/Parser/Parser.cpp @@ -111,7 +111,7 @@ static ParseResult<ParseUntilAnyOfResult<T>> parse_until_any_of(InputStream& str if (parse_result.is_error()) return parse_result.error(); - result.values.append(parse_result.release_value()); + result.values.extend(parse_result.release_value()); } } @@ -312,7 +312,7 @@ ParseResult<Vector<Instruction>> Instruction::parse(InputStream& stream, Instruc // Transform op(..., instr*, instr*) -> op(...) instr* op(else(ip) instr* op(end(ip)) VERIFY(result.value().terminator == 0x05); - instructions.append(result.release_value().values); + instructions.extend(result.release_value().values); instructions.append(Instruction { Instructions::structured_else }); ++ip; else_ip = ip.value(); @@ -322,7 +322,7 @@ ParseResult<Vector<Instruction>> Instruction::parse(InputStream& stream, Instruc auto result = parse_until_any_of<Instruction, 0x0b>(stream, ip); if (result.is_error()) return result.error(); - instructions.append(result.release_value().values); + instructions.extend(result.release_value().values); instructions.append(Instruction { Instructions::structured_end }); ++ip; end_ip = ip.value(); |