mirror of
https://github.com/RGBCube/serenity
synced 2025-06-01 08:38:10 +00:00
Userland: Make GUI::Window
construction non-fallible
This commit is contained in:
parent
b6b2c6f3e2
commit
0d7b13edac
55 changed files with 60 additions and 60 deletions
|
@ -278,7 +278,7 @@ ErrorOr<int> serenity_main(Main::Arguments arguments)
|
|||
|
||||
auto app_icon = TRY(GUI::Icon::try_create_default_icon("app-system-monitor"sv));
|
||||
|
||||
auto window = TRY(GUI::Window::try_create());
|
||||
auto window = GUI::Window::construct();
|
||||
window->set_title("System Monitor");
|
||||
window->resize(560, 430);
|
||||
|
||||
|
@ -523,7 +523,7 @@ ErrorOr<int> serenity_main(Main::Arguments arguments)
|
|||
|
||||
ErrorOr<NonnullRefPtr<GUI::Window>> build_process_window(pid_t pid)
|
||||
{
|
||||
auto window = TRY(GUI::Window::try_create());
|
||||
auto window = GUI::Window::construct();
|
||||
window->resize(480, 360);
|
||||
window->set_title(DeprecatedString::formatted("PID {} - System Monitor", pid));
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue