mirror of
https://github.com/fergalmoran/ladybird.git
synced 2025-12-25 10:48:41 +00:00
Sprinkle use of AK::Vector in various places.
Some of these are less helpful than others. Avoiding a bunch of mallocs in the event loop wakeup code is definitely nice.
This commit is contained in:
@@ -95,7 +95,7 @@ int CEventLoop::exec()
|
||||
wait_for_event();
|
||||
do_processing();
|
||||
}
|
||||
Vector<QueuedEvent> events = move(m_queued_events);
|
||||
auto events = move(m_queued_events);
|
||||
for (auto& queued_event : events) {
|
||||
auto* receiver = queued_event.receiver.ptr();
|
||||
auto& event = *queued_event.event;
|
||||
|
||||
Reference in New Issue
Block a user