1
Fork 0
mirror of https://github.com/RGBCube/serenity synced 2025-07-28 05:27: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:
Andreas Kling 2021-06-12 13:24:45 +02:00
parent 7e1bffdeb8
commit dc65f54c06
37 changed files with 103 additions and 104 deletions

View file

@ -405,7 +405,7 @@ void EventLoop::pump(WaitMode mode)
new_event_queue.ensure_capacity(m_queued_events.size() + events.size());
for (++i; i < events.size(); ++i)
new_event_queue.unchecked_append(move(events[i]));
new_event_queue.append(move(m_queued_events));
new_event_queue.extend(move(m_queued_events));
m_queued_events = move(new_event_queue);
return;
}

View file

@ -58,7 +58,7 @@ public:
void take_pending_events_from(EventLoop& other)
{
m_queued_events.append(move(other.m_queued_events));
m_queued_events.extend(move(other.m_queued_events));
}
static void wake();