summaryrefslogtreecommitdiff
path: root/Userland/Applications/SystemMonitor/main.cpp
diff options
context:
space:
mode:
authorSam Atkins <atkinssj@serenityos.org>2023-01-07 12:38:23 +0000
committerLinus Groh <mail@linusgroh.de>2023-01-07 14:39:30 +0100
commitf0395a20428230ee680c6f92efd68dedd040c658 (patch)
treee391a4ef7736281c4d2c93dcba862060e935825d /Userland/Applications/SystemMonitor/main.cpp
parente4e12f3a961efd5f0ce0204becd3ce762a458c4c (diff)
downloadserenity-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/SystemMonitor/main.cpp')
-rw-r--r--Userland/Applications/SystemMonitor/main.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/Userland/Applications/SystemMonitor/main.cpp b/Userland/Applications/SystemMonitor/main.cpp
index e2d9baf8c5..e01aa4f254 100644
--- a/Userland/Applications/SystemMonitor/main.cpp
+++ b/Userland/Applications/SystemMonitor/main.cpp
@@ -279,7 +279,7 @@ ErrorOr<int> serenity_main(Main::Arguments arguments)
window->resize(560, 430);
auto main_widget = TRY(window->set_main_widget<GUI::Widget>());
- TRY(main_widget->try_load_from_gml(system_monitor_gml));
+ TRY(main_widget->load_from_gml(system_monitor_gml));
auto& tabwidget = *main_widget->find_descendant_of_type_named<GUI::TabWidget>("main_tabs");
statusbar = main_widget->find_descendant_of_type_named<GUI::Statusbar>("statusbar");
@@ -513,7 +513,7 @@ ErrorOr<NonnullRefPtr<GUI::Window>> build_process_window(pid_t pid)
window->set_icon(app_icon.bitmap_for_size(16));
auto main_widget = TRY(window->set_main_widget<GUI::Widget>());
- TRY(main_widget->try_load_from_gml(process_window_gml));
+ TRY(main_widget->load_from_gml(process_window_gml));
GUI::ModelIndex process_index;
for (int row = 0; row < ProcessModel::the().row_count({}); ++row) {