mirror of
https://github.com/LadybirdBrowser/ladybird
synced 2026-05-01 12:07:14 +02: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:
committed by
Brian Gianforcaro
parent
c72a996542
commit
f6633a1026
Notes:
sideshowbarker
2024-07-17 22:14:33 +09:00
Author: https://github.com/AtkinsSJ Commit: https://github.com/SerenityOS/serenity/commit/f6633a1026a Pull-request: https://github.com/SerenityOS/serenity/pull/11394 Reviewed-by: https://github.com/bgianfo ✅
@@ -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>());
|
||||
|
||||
|
||||
Reference in New Issue
Block a user