Userland: Make GUI::Window construction non-fallible

This commit is contained in:
Tim Ledbetter 2023-09-16 12:51:33 +01:00 committed by Andrew Kaster
commit 0d7b13edac
Notes: sideshowbarker 2024-07-17 09:49:33 +09:00
55 changed files with 60 additions and 60 deletions

View file

@ -73,7 +73,7 @@ ErrorOr<NonnullRefPtr<MainWidget>> MainWidget::try_create(GUI::Icon const& icon)
main_widget->m_preview_frame_widget = main_widget->find_descendant_of_type_named<GUI::Frame>("preview_frame");
main_widget->m_statusbar = main_widget->find_descendant_of_type_named<GUI::Statusbar>("statusbar");
main_widget->m_preview_window = TRY(GUI::Window::try_create(main_widget));
main_widget->m_preview_window = GUI::Window::construct(main_widget);
main_widget->m_preview_window->set_title("Preview - GML Playground");
main_widget->m_preview_window->set_icon(icon.bitmap_for_size(16));
main_widget->m_preview_window_widget = TRY(main_widget->m_preview_window->set_main_widget<GUI::Widget>());