1
Fork 0
mirror of https://github.com/RGBCube/serenity synced 2025-05-31 14:28:12 +00:00

LibGUI: Convert GSplitter to ObjectPtr

This commit is contained in:
Andreas Kling 2019-09-21 16:11:02 +02:00
parent efb8f9d538
commit 4f4438c04c
7 changed files with 10 additions and 8 deletions

View file

@ -19,7 +19,7 @@ IRCWindow::IRCWindow(IRCClient& client, void* owner, Type type, const String& na
set_layout(make<GBoxLayout>(Orientation::Vertical));
// Make a container for the log buffer view + (optional) member list.
auto* container = new GSplitter(Orientation::Horizontal, this);
auto container = GSplitter::construct(Orientation::Horizontal, this);
m_table_view = GTableView::construct(container);
m_table_view->set_size_columns_to_fit_content(true);