mirror of
https://github.com/RGBCube/serenity
synced 2025-07-14 20:17:35 +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
|
@ -14,7 +14,7 @@ ErrorOr<int> serenity_main(Main::Arguments arguments)
|
|||
|
||||
TRY(Core::System::pledge("stdio recvfd sendfd rpath"));
|
||||
|
||||
auto window = TRY(GUI::Window::try_create());
|
||||
auto window = GUI::Window::construct();
|
||||
window->set_title("Example Application");
|
||||
window->resize(200, 200);
|
||||
window->set_resizable(false);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue