LibGUI+Userland: Make SortingProxyModel::create() return ErrorOr

Unfortunately, most of the users are inside constructors, (and two
others are inside callback lambdas) so the error can't propagate, but
that can be improved later.
This commit is contained in:
Sam Atkins 2021-12-24 12:12:04 +00:00 committed by Brian Gianforcaro
parent c72a996542
commit f6633a1026
Notes: sideshowbarker 2024-07-17 22:14:33 +09:00
11 changed files with 20 additions and 16 deletions

View file

@ -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()