mirror of
https://github.com/RGBCube/serenity
synced 2025-07-25 17:27:35 +00:00
Userland: Replace remaining Core::Timer::construct()s with try_create()
This commit is contained in:
parent
e181b1cb82
commit
652f87821b
4 changed files with 5 additions and 5 deletions
|
@ -16,7 +16,7 @@ NonnullRefPtr<TimerSerenity> TimerSerenity::create()
|
|||
}
|
||||
|
||||
TimerSerenity::TimerSerenity()
|
||||
: m_timer(Core::Timer::construct())
|
||||
: m_timer(Core::Timer::try_create().release_value_but_fixme_should_propagate_errors())
|
||||
{
|
||||
m_timer->on_timeout = [this] {
|
||||
if (on_timeout)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue