mirror of
https://github.com/RGBCube/serenity
synced 2025-06-01 03:18:11 +00:00
LibGUI: Remove Widget::try_set_layout<T>()
And fall back to the infallible set_layout<T>(). Work towards #20557.
This commit is contained in:
parent
341626e2ea
commit
8322b31b97
52 changed files with 127 additions and 135 deletions
|
@ -27,7 +27,7 @@ ErrorOr<NonnullRefPtr<PathBreadcrumbbar>> PathBreadcrumbbar::try_create()
|
|||
auto breadcrumbbar = TRY(Breadcrumbbar::try_create());
|
||||
|
||||
auto path_breadcrumbbar = TRY(adopt_nonnull_ref_or_enomem(new (nothrow) PathBreadcrumbbar(*location_text_box, *breadcrumbbar)));
|
||||
(void)TRY(path_breadcrumbbar->try_set_layout<GUI::VerticalBoxLayout>());
|
||||
path_breadcrumbbar->set_layout<GUI::VerticalBoxLayout>();
|
||||
TRY(path_breadcrumbbar->try_add_child(location_text_box));
|
||||
TRY(path_breadcrumbbar->try_add_child(breadcrumbbar));
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue