diff options
Diffstat (limited to 'Userland/Applications/SystemMonitor')
5 files changed, 9 insertions, 9 deletions
diff --git a/Userland/Applications/SystemMonitor/NetworkStatisticsWidget.cpp b/Userland/Applications/SystemMonitor/NetworkStatisticsWidget.cpp index e48f82b72b..f1fdcc9c98 100644 --- a/Userland/Applications/SystemMonitor/NetworkStatisticsWidget.cpp +++ b/Userland/Applications/SystemMonitor/NetworkStatisticsWidget.cpp @@ -65,7 +65,7 @@ NetworkStatisticsWidget::NetworkStatisticsWidget() net_adapters_fields.empend("bytes_in", "Bytes In", Gfx::TextAlignment::CenterRight); net_adapters_fields.empend("bytes_out", "Bytes Out", Gfx::TextAlignment::CenterRight); m_adapter_model = GUI::JsonArrayModel::create("/proc/net/adapters", move(net_adapters_fields)); - m_adapter_table_view->set_model(GUI::SortingProxyModel::create(*m_adapter_model)); + m_adapter_table_view->set_model(MUST(GUI::SortingProxyModel::create(*m_adapter_model))); auto& tcp_sockets_group_box = add<GUI::GroupBox>("TCP Sockets"); tcp_sockets_group_box.set_layout<GUI::VerticalBoxLayout>(); @@ -86,7 +86,7 @@ NetworkStatisticsWidget::NetworkStatisticsWidget() net_tcp_fields.empend("bytes_in", "Bytes In", Gfx::TextAlignment::CenterRight); net_tcp_fields.empend("bytes_out", "Bytes Out", Gfx::TextAlignment::CenterRight); m_tcp_socket_model = GUI::JsonArrayModel::create("/proc/net/tcp", move(net_tcp_fields)); - m_tcp_socket_table_view->set_model(GUI::SortingProxyModel::create(*m_tcp_socket_model)); + m_tcp_socket_table_view->set_model(MUST(GUI::SortingProxyModel::create(*m_tcp_socket_model))); auto& udp_sockets_group_box = add<GUI::GroupBox>("UDP Sockets"); udp_sockets_group_box.set_layout<GUI::VerticalBoxLayout>(); @@ -100,7 +100,7 @@ NetworkStatisticsWidget::NetworkStatisticsWidget() net_udp_fields.empend("local_address", "Local", Gfx::TextAlignment::CenterLeft); net_udp_fields.empend("local_port", "Port", Gfx::TextAlignment::CenterRight); m_udp_socket_model = GUI::JsonArrayModel::create("/proc/net/udp", move(net_udp_fields)); - m_udp_socket_table_view->set_model(GUI::SortingProxyModel::create(*m_udp_socket_model)); + m_udp_socket_table_view->set_model(MUST(GUI::SortingProxyModel::create(*m_udp_socket_model))); m_update_timer = add<Core::Timer>( 1000, [this] { diff --git a/Userland/Applications/SystemMonitor/ProcessFileDescriptorMapWidget.cpp b/Userland/Applications/SystemMonitor/ProcessFileDescriptorMapWidget.cpp index 879983aedf..90cdf3a674 100644 --- a/Userland/Applications/SystemMonitor/ProcessFileDescriptorMapWidget.cpp +++ b/Userland/Applications/SystemMonitor/ProcessFileDescriptorMapWidget.cpp @@ -38,7 +38,7 @@ ProcessFileDescriptorMapWidget::ProcessFileDescriptorMapWidget() }); m_model = GUI::JsonArrayModel::create({}, move(pid_fds_fields)); - m_table_view->set_model(GUI::SortingProxyModel::create(*m_model)); + m_table_view->set_model(MUST(GUI::SortingProxyModel::create(*m_model))); } ProcessFileDescriptorMapWidget::~ProcessFileDescriptorMapWidget() diff --git a/Userland/Applications/SystemMonitor/ProcessMemoryMapWidget.cpp b/Userland/Applications/SystemMonitor/ProcessMemoryMapWidget.cpp index 6cf99fed78..c10a656b51 100644 --- a/Userland/Applications/SystemMonitor/ProcessMemoryMapWidget.cpp +++ b/Userland/Applications/SystemMonitor/ProcessMemoryMapWidget.cpp @@ -99,7 +99,7 @@ ProcessMemoryMapWidget::ProcessMemoryMapWidget() pid_vm_fields.empend("cow_pages", "# CoW", Gfx::TextAlignment::CenterRight); pid_vm_fields.empend("name", "Name", Gfx::TextAlignment::CenterLeft); m_json_model = GUI::JsonArrayModel::create({}, move(pid_vm_fields)); - m_table_view->set_model(GUI::SortingProxyModel::create(*m_json_model)); + m_table_view->set_model(MUST(GUI::SortingProxyModel::create(*m_json_model))); m_table_view->set_column_painting_delegate(7, make<PagemapPaintingDelegate>()); diff --git a/Userland/Applications/SystemMonitor/ProcessUnveiledPathsWidget.cpp b/Userland/Applications/SystemMonitor/ProcessUnveiledPathsWidget.cpp index 2ad0045bac..9d4dff2316 100644 --- a/Userland/Applications/SystemMonitor/ProcessUnveiledPathsWidget.cpp +++ b/Userland/Applications/SystemMonitor/ProcessUnveiledPathsWidget.cpp @@ -21,7 +21,7 @@ ProcessUnveiledPathsWidget::ProcessUnveiledPathsWidget() pid_unveil_fields.empend("permissions", "Permissions", Gfx::TextAlignment::CenterLeft); m_model = GUI::JsonArrayModel::create({}, move(pid_unveil_fields)); - m_table_view->set_model(GUI::SortingProxyModel::create(*m_model)); + m_table_view->set_model(MUST(GUI::SortingProxyModel::create(*m_model))); } ProcessUnveiledPathsWidget::~ProcessUnveiledPathsWidget() diff --git a/Userland/Applications/SystemMonitor/main.cpp b/Userland/Applications/SystemMonitor/main.cpp index 1c4bb5ed01..cf1b61b604 100644 --- a/Userland/Applications/SystemMonitor/main.cpp +++ b/Userland/Applications/SystemMonitor/main.cpp @@ -180,7 +180,7 @@ ErrorOr<int> serenity_main(Main::Arguments arguments) auto& process_table_view = process_table_container.add<GUI::TableView>(); process_table_view.set_column_headers_visible(true); - process_table_view.set_model(GUI::SortingProxyModel::create(process_model)); + process_table_view.set_model(TRY(GUI::SortingProxyModel::create(process_model))); for (auto column = 0; column < ProcessModel::Column::__Count; ++column) process_table_view.set_column_visible(column, false); process_table_view.set_column_visible(ProcessModel::Column::Icon, true); @@ -549,7 +549,7 @@ NonnullRefPtr<GUI::Widget> build_storage_widget() df_fields.empend("total_inode_count", "Total inodes", Gfx::TextAlignment::CenterRight); df_fields.empend("block_size", "Block size", Gfx::TextAlignment::CenterRight); - fs_table_view.set_model(GUI::SortingProxyModel::create(GUI::JsonArrayModel::create("/proc/df", move(df_fields)))); + fs_table_view.set_model(MUST(GUI::SortingProxyModel::create(GUI::JsonArrayModel::create("/proc/df", move(df_fields))))); fs_table_view.set_column_painting_delegate(3, make<ProgressbarPaintingDelegate>()); @@ -647,7 +647,7 @@ NonnullRefPtr<GUI::Widget> build_hardware_tab() return String::formatted("{:02x}", revision_id); }); - pci_table_view.set_model(GUI::SortingProxyModel::create(GUI::JsonArrayModel::create("/proc/pci", move(pci_fields)))); + pci_table_view.set_model(MUST(GUI::SortingProxyModel::create(GUI::JsonArrayModel::create("/proc/pci", move(pci_fields))))); pci_table_view.model()->invalidate(); } }; |