mirror of
https://github.com/RGBCube/serenity
synced 2025-07-26 07:07:45 +00:00
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.
This commit is contained in:
parent
7e1bffdeb8
commit
dc65f54c06
37 changed files with 103 additions and 104 deletions
|
@ -209,7 +209,7 @@ BENCHMARK_CASE(vector_append_trivial)
|
|||
}
|
||||
for (int i = 0; i < 100; ++i) {
|
||||
Vector<int> tmp;
|
||||
tmp.append(ints);
|
||||
tmp.extend(ints);
|
||||
EXPECT_EQ(tmp.size(), 1000000u);
|
||||
}
|
||||
}
|
||||
|
@ -450,7 +450,7 @@ TEST_CASE(can_store_references)
|
|||
|
||||
{
|
||||
Vector<int&> other_references;
|
||||
other_references.append(references);
|
||||
other_references.extend(references);
|
||||
EXPECT_EQ(&other_references.first(), &my_integer);
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue