1
Fork 0
mirror of https://github.com/RGBCube/serenity synced 2025-07-25 21:57:43 +00:00

LibCore+Ladybird: Don't store timer_id in Core::TimerEvent

This commit is contained in:
Dan Klishch 2024-02-17 23:59:28 -05:00 committed by Andrew Kaster
parent cdc0c9f094
commit 21097d1c9e
4 changed files with 8 additions and 13 deletions

View file

@ -66,17 +66,12 @@ private:
class TimerEvent final : public Event {
public:
explicit TimerEvent(int timer_id)
explicit TimerEvent()
: Event(Event::Timer)
, m_timer_id(timer_id)
{
}
~TimerEvent() = default;
int timer_id() const { return m_timer_id; }
private:
int m_timer_id;
};
enum class NotificationType {

View file

@ -244,7 +244,7 @@ try_select_again:
}
if (owner)
ThreadEventQueue::current().post_event(*owner, make<TimerEvent>(timer.timer_id));
ThreadEventQueue::current().post_event(*owner, make<TimerEvent>());
if (timer.should_reload) {
timer.reload(now);
} else {