diff options
author | Andreas Kling <awesomekling@gmail.com> | 2019-09-21 16:03:59 +0200 |
---|---|---|
committer | Andreas Kling <awesomekling@gmail.com> | 2019-09-21 16:03:59 +0200 |
commit | e7b55037f48b8fcddbe283598cad4ef7dcf323f5 (patch) | |
tree | a954b20046204aefd0eec325a54bd20bc57060f4 /Applications/FileManager | |
parent | c13b9e22144ab246355d158448a8f6111b5e0a48 (diff) | |
download | serenity-e7b55037f48b8fcddbe283598cad4ef7dcf323f5.zip |
LibGUI: Convert GTableView to ObjectPtr
Diffstat (limited to 'Applications/FileManager')
-rw-r--r-- | Applications/FileManager/DirectoryView.cpp | 2 | ||||
-rw-r--r-- | Applications/FileManager/DirectoryView.h | 2 |
2 files changed, 2 insertions, 2 deletions
diff --git a/Applications/FileManager/DirectoryView.cpp b/Applications/FileManager/DirectoryView.cpp index 7472713ea5..326fae02ab 100644 --- a/Applications/FileManager/DirectoryView.cpp +++ b/Applications/FileManager/DirectoryView.cpp @@ -79,7 +79,7 @@ DirectoryView::DirectoryView(GWidget* parent) m_item_view = GItemView::construct(this); m_item_view->set_model(model()); - m_table_view = new GTableView(this); + m_table_view = GTableView::construct(this); m_table_view->set_model(GSortingProxyModel::create(m_model)); m_table_view->model()->set_key_column_and_sort_order(GDirectoryModel::Column::Name, GSortOrder::Ascending); diff --git a/Applications/FileManager/DirectoryView.h b/Applications/FileManager/DirectoryView.h index f383596cae..8ea8f41880 100644 --- a/Applications/FileManager/DirectoryView.h +++ b/Applications/FileManager/DirectoryView.h @@ -72,6 +72,6 @@ private: Vector<String> m_path_history; void add_path_to_history(const StringView& path); - GTableView* m_table_view { nullptr }; + ObjectPtr<GTableView> m_table_view; ObjectPtr<GItemView> m_item_view; }; |