mirror of
https://github.com/LadybirdBrowser/ladybird
synced 2026-05-14 10:59:24 +02:00
Userland: Use non-fallible EventReceiver::add() where possible
This commit is contained in:
committed by
Andreas Kling
parent
707ca984bd
commit
b4e134cb52
Notes:
sideshowbarker
2024-07-17 03:18:29 +09:00
Author: https://github.com/tcl3 Commit: https://github.com/SerenityOS/serenity/commit/b4e134cb52 Pull-request: https://github.com/SerenityOS/serenity/pull/21196
@@ -75,7 +75,7 @@ ErrorOr<NonnullRefPtr<ThreadStackWidget>> ThreadStackWidget::try_create()
|
||||
{
|
||||
auto widget = TRY(adopt_nonnull_ref_or_enomem(new (nothrow) ThreadStackWidget()));
|
||||
widget->set_layout<GUI::VerticalBoxLayout>(4);
|
||||
widget->m_stack_table = TRY(widget->try_add<GUI::TableView>());
|
||||
widget->m_stack_table = widget->add<GUI::TableView>();
|
||||
widget->m_stack_table->set_model(TRY(try_make_ref_counted<ThreadStackModel>()));
|
||||
return widget;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user