1
Fork 0
mirror of https://github.com/RGBCube/serenity synced 2025-07-27 02:37:36 +00:00

LibGUI: Convert GItemView to ObjectPtr

This commit is contained in:
Andreas Kling 2019-09-21 15:47:58 +02:00
parent 93851c3832
commit c13b9e2214
3 changed files with 4 additions and 3 deletions

View file

@ -76,7 +76,7 @@ DirectoryView::DirectoryView(GWidget* parent)
, m_model(GDirectoryModel::create())
{
set_active_widget(nullptr);
m_item_view = new GItemView(this);
m_item_view = GItemView::construct(this);
m_item_view->set_model(model());
m_table_view = new GTableView(this);

View file

@ -73,5 +73,5 @@ private:
void add_path_to_history(const StringView& path);
GTableView* m_table_view { nullptr };
GItemView* m_item_view { nullptr };
ObjectPtr<GItemView> m_item_view;
};