From 54b1326165dd97ae3dab82360d0e7b029650004d Mon Sep 17 00:00:00 2001 From: Sam Atkins Date: Sat, 7 Jan 2023 12:33:53 +0000 Subject: Userland: Replace all uses of `load_from_gml` with `try_load_from_gml` MOAR FIXMES! ;^) --- Userland/Games/Hearts/main.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'Userland/Games/Hearts/main.cpp') diff --git a/Userland/Games/Hearts/main.cpp b/Userland/Games/Hearts/main.cpp index 30617193fe..2707e03de9 100644 --- a/Userland/Games/Hearts/main.cpp +++ b/Userland/Games/Hearts/main.cpp @@ -51,7 +51,7 @@ ErrorOr serenity_main(Main::Arguments arguments) window->set_title("Hearts"); auto widget = TRY(window->set_main_widget()); - widget->load_from_gml(hearts_gml); + TRY(widget->try_load_from_gml(hearts_gml)); auto& game = *widget->find_descendant_of_type_named("game"); game.set_focus(true); -- cgit v1.2.3