mirror of
https://github.com/fergalmoran/ladybird.git
synced 2025-12-25 10:48:41 +00:00
LibGUI: Use Core::Object::add() a whole bunch
This commit is contained in:
@@ -40,7 +40,7 @@ AbstractButton::AbstractButton(const StringView& text, Widget* parent)
|
||||
: Widget(parent)
|
||||
, m_text(text)
|
||||
{
|
||||
m_auto_repeat_timer = Core::Timer::construct(this);
|
||||
m_auto_repeat_timer = add<Core::Timer>();
|
||||
m_auto_repeat_timer->on_timeout = [this] {
|
||||
click();
|
||||
};
|
||||
|
||||
Reference in New Issue
Block a user