mirror of
https://github.com/RGBCube/serenity
synced 2025-07-27 18:27:35 +00:00
LibGUI: Convert remaining random little things to ObjectPtr
This commit is contained in:
parent
81a5c4fc56
commit
409494193e
11 changed files with 15 additions and 13 deletions
|
@ -189,7 +189,7 @@ void IRCAppWindow::setup_widgets()
|
|||
set_active_window(m_client.window_at(index.row()));
|
||||
};
|
||||
|
||||
m_container = new GStackWidget(horizontal_container);
|
||||
m_container = GStackWidget::construct(horizontal_container);
|
||||
m_container->on_active_widget_change = [this](auto*) {
|
||||
update_part_action();
|
||||
};
|
||||
|
|
|
@ -27,7 +27,7 @@ private:
|
|||
|
||||
IRCWindow& create_window(void* owner, IRCWindow::Type, const String& name);
|
||||
IRCClient m_client;
|
||||
GStackWidget* m_container { nullptr };
|
||||
ObjectPtr<GStackWidget> m_container;
|
||||
ObjectPtr<GTableView> m_window_list;
|
||||
RefPtr<GAction> m_join_action;
|
||||
RefPtr<GAction> m_part_action;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue