1
Fork 0
mirror of https://github.com/RGBCube/serenity synced 2025-05-23 14:45:07 +00:00

LibGUI: Convert GTableView to ObjectPtr

This commit is contained in:
Andreas Kling 2019-09-21 16:03:59 +02:00
parent c13b9e2214
commit e7b55037f4
20 changed files with 27 additions and 26 deletions

View file

@ -28,7 +28,7 @@ int main(int argc, char** argv)
board_combo->set_preferred_size(0, 20);
board_combo->set_model(BoardListModel::create());
auto* catalog_view = new GTableView(widget);
auto catalog_view = GTableView::construct(widget);
catalog_view->set_model(ThreadCatalogModel::create());
auto& catalog_model = *static_cast<ThreadCatalogModel*>(catalog_view->model());