mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2024-09-30 08:41:15 +00:00
Userland: Replace remaining Core::Timer::construct()s with try_create()
This commit is contained in:
parent
e181b1cb82
commit
652f87821b
Notes:
sideshowbarker
2024-07-17 05:58:46 +09:00
Author: https://github.com/AtkinsSJ Commit: https://github.com/SerenityOS/serenity/commit/652f87821b Pull-request: https://github.com/SerenityOS/serenity/pull/16960 Reviewed-by: https://github.com/alimpfard
|
@ -24,7 +24,7 @@
|
|||
namespace ImageViewer {
|
||||
|
||||
ViewWidget::ViewWidget()
|
||||
: m_timer(Core::Timer::construct())
|
||||
: m_timer(Core::Timer::try_create().release_value_but_fixme_should_propagate_errors())
|
||||
{
|
||||
set_fill_with_background_color(false);
|
||||
}
|
||||
|
|
|
@ -64,8 +64,8 @@ public:
|
|||
|
||||
private:
|
||||
InfinitelyScrollableTableView()
|
||||
: m_horizontal_scroll_end_timer(Core::Timer::construct())
|
||||
, m_vertical_scroll_end_timer(Core::Timer::construct())
|
||||
: m_horizontal_scroll_end_timer(Core::Timer::try_create().release_value_but_fixme_should_propagate_errors())
|
||||
, m_vertical_scroll_end_timer(Core::Timer::try_create().release_value_but_fixme_should_propagate_errors())
|
||||
{
|
||||
}
|
||||
virtual void did_scroll() override;
|
||||
|
|
|
@ -16,7 +16,7 @@ REGISTER_WIDGET(GUI, ImageWidget)
|
|||
namespace GUI {
|
||||
|
||||
ImageWidget::ImageWidget(StringView)
|
||||
: m_timer(Core::Timer::construct())
|
||||
: m_timer(Core::Timer::try_create().release_value_but_fixme_should_propagate_errors())
|
||||
|
||||
{
|
||||
set_frame_thickness(0);
|
||||
|
|
|
@ -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…
Reference in a new issue