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:
parent
cdc0c9f094
commit
21097d1c9e
4 changed files with 8 additions and 13 deletions
|
@ -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 {
|
||||
|
|
|
@ -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 {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue