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

@ -79,7 +79,7 @@ ErrorOr<int> serenity_main(Main::Arguments arguments)
auto& profile = profile_or_error.value();
auto window = TRY(GUI::Window::try_create());
auto window = GUI::Window::construct();
TRY(Desktop::Launcher::add_allowed_handler_with_only_specific_urls("/bin/Help", { URL::create_with_file_scheme("/usr/share/man/man1/Applications/Profiler.md") }));
TRY(Desktop::Launcher::seal_allowlist());