mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2025-05-05 10:42:51 +00:00
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:
parent
c72a996542
commit
f6633a1026
Notes:
sideshowbarker
2024-07-17 22:14:33 +09:00
Author: https://github.com/AtkinsSJ
Commit: f6633a1026
Pull-request: https://github.com/SerenityOS/serenity/pull/11394
Reviewed-by: https://github.com/bgianfo ✅
11 changed files with 20 additions and 16 deletions
|
@ -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()
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue