summaryrefslogtreecommitdiff
path: root/Userland/Games/Hearts/main.cpp
diff options
context:
space:
mode:
authorSam Atkins <atkinssj@serenityos.org>2023-01-07 12:33:53 +0000
committerLinus Groh <mail@linusgroh.de>2023-01-07 14:39:30 +0100
commit54b1326165dd97ae3dab82360d0e7b029650004d (patch)
treebf0761a91ae3717da5e59356108e6d3260fd9137 /Userland/Games/Hearts/main.cpp
parent703da34947b147763815da9fee89ce2ba05372b7 (diff)
downloadserenity-54b1326165dd97ae3dab82360d0e7b029650004d.zip
Userland: Replace all uses of `load_from_gml` with `try_load_from_gml`
MOAR FIXMES! ;^)
Diffstat (limited to 'Userland/Games/Hearts/main.cpp')
-rw-r--r--Userland/Games/Hearts/main.cpp2
1 files changed, 1 insertions, 1 deletions
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<int> serenity_main(Main::Arguments arguments)
window->set_title("Hearts");
auto widget = TRY(window->set_main_widget<GUI::Widget>());
- widget->load_from_gml(hearts_gml);
+ TRY(widget->try_load_from_gml(hearts_gml));
auto& game = *widget->find_descendant_of_type_named<Hearts::Game>("game");
game.set_focus(true);