diff options
author | Andreas Kling <awesomekling@gmail.com> | 2019-09-21 15:47:58 +0200 |
---|---|---|
committer | Andreas Kling <awesomekling@gmail.com> | 2019-09-21 15:47:58 +0200 |
commit | c13b9e22144ab246355d158448a8f6111b5e0a48 (patch) | |
tree | fbd3754d6ab7ccee24d44270d6c21b2a68724e84 /Applications | |
parent | 93851c3832bb59259309ede0465be056a706df3e (diff) | |
download | serenity-c13b9e22144ab246355d158448a8f6111b5e0a48.zip |
LibGUI: Convert GItemView to ObjectPtr
Diffstat (limited to 'Applications')
-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 dd1f724348..7472713ea5 100644 --- a/Applications/FileManager/DirectoryView.cpp +++ b/Applications/FileManager/DirectoryView.cpp @@ -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); diff --git a/Applications/FileManager/DirectoryView.h b/Applications/FileManager/DirectoryView.h index 78e8755a08..f383596cae 100644 --- a/Applications/FileManager/DirectoryView.h +++ b/Applications/FileManager/DirectoryView.h @@ -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; }; |