mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2025-04-21 03:55:24 +00:00
CEventLoop: Avoid undefined evaluation order in register_timer().
This commit is contained in:
parent
67fe583f6a
commit
66646081b7
Notes:
sideshowbarker
2024-07-19 13:05:15 +09:00
Author: https://github.com/awesomekling Commit: https://github.com/SerenityOS/serenity/commit/66646081b79
1 changed files with 1 additions and 1 deletions
|
@ -287,7 +287,7 @@ int CEventLoop::register_timer(CObject& object, int milliseconds, bool should_re
|
|||
int timer_id = ++s_next_timer_id; // FIXME: This will eventually wrap around.
|
||||
ASSERT(timer_id); // FIXME: Aforementioned wraparound.
|
||||
timer->timer_id = timer_id;
|
||||
s_timers->set(timer->timer_id, move(timer));
|
||||
s_timers->set(timer_id, move(timer));
|
||||
return timer_id;
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Reference in a new issue