diff options
author | Sam Atkins <atkinssj@serenityos.org> | 2023-01-07 12:38:23 +0000 |
---|---|---|
committer | Linus Groh <mail@linusgroh.de> | 2023-01-07 14:39:30 +0100 |
commit | f0395a20428230ee680c6f92efd68dedd040c658 (patch) | |
tree | e391a4ef7736281c4d2c93dcba862060e935825d /Userland/Applications/HexEditor | |
parent | e4e12f3a961efd5f0ce0204becd3ce762a458c4c (diff) | |
download | serenity-f0395a20428230ee680c6f92efd68dedd040c658.zip |
LibGUI+Userland: Rename `try_load_from_gml()` -> `load_from_gml()` :^)
It's the only one, so the `try` prefix is unnecessary now.
Diffstat (limited to 'Userland/Applications/HexEditor')
-rw-r--r-- | Userland/Applications/HexEditor/FindDialog.cpp | 2 | ||||
-rw-r--r-- | Userland/Applications/HexEditor/GoToOffsetDialog.cpp | 2 | ||||
-rw-r--r-- | Userland/Applications/HexEditor/HexEditorWidget.cpp | 2 |
3 files changed, 3 insertions, 3 deletions
diff --git a/Userland/Applications/HexEditor/FindDialog.cpp b/Userland/Applications/HexEditor/FindDialog.cpp index a0e4dea59d..c3204f64b4 100644 --- a/Userland/Applications/HexEditor/FindDialog.cpp +++ b/Userland/Applications/HexEditor/FindDialog.cpp @@ -100,7 +100,7 @@ FindDialog::FindDialog() set_title("Find"); auto main_widget = set_main_widget<GUI::Widget>().release_value_but_fixme_should_propagate_errors(); - main_widget->try_load_from_gml(find_dialog_gml).release_value_but_fixme_should_propagate_errors(); + main_widget->load_from_gml(find_dialog_gml).release_value_but_fixme_should_propagate_errors(); m_text_editor = *main_widget->find_descendant_of_type_named<GUI::TextBox>("text_editor"); m_find_button = *main_widget->find_descendant_of_type_named<GUI::Button>("find_button"); diff --git a/Userland/Applications/HexEditor/GoToOffsetDialog.cpp b/Userland/Applications/HexEditor/GoToOffsetDialog.cpp index 272f4d4682..3be46e7624 100644 --- a/Userland/Applications/HexEditor/GoToOffsetDialog.cpp +++ b/Userland/Applications/HexEditor/GoToOffsetDialog.cpp @@ -97,7 +97,7 @@ GoToOffsetDialog::GoToOffsetDialog() set_title("Go to Offset"); auto main_widget = set_main_widget<GUI::Widget>().release_value_but_fixme_should_propagate_errors(); - main_widget->try_load_from_gml(go_to_offset_dialog_gml).release_value_but_fixme_should_propagate_errors(); + main_widget->load_from_gml(go_to_offset_dialog_gml).release_value_but_fixme_should_propagate_errors(); m_text_editor = *main_widget->find_descendant_of_type_named<GUI::TextBox>("text_editor"); m_go_button = *main_widget->find_descendant_of_type_named<GUI::Button>("go_button"); diff --git a/Userland/Applications/HexEditor/HexEditorWidget.cpp b/Userland/Applications/HexEditor/HexEditorWidget.cpp index 0fefa859ed..0e363be188 100644 --- a/Userland/Applications/HexEditor/HexEditorWidget.cpp +++ b/Userland/Applications/HexEditor/HexEditorWidget.cpp @@ -40,7 +40,7 @@ REGISTER_WIDGET(HexEditor, HexEditor); HexEditorWidget::HexEditorWidget() { - try_load_from_gml(hex_editor_window_gml).release_value_but_fixme_should_propagate_errors(); + load_from_gml(hex_editor_window_gml).release_value_but_fixme_should_propagate_errors(); m_toolbar = *find_descendant_of_type_named<GUI::Toolbar>("toolbar"); m_toolbar_container = *find_descendant_of_type_named<GUI::ToolbarContainer>("toolbar_container"); |