mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2024-12-14 18:30:38 +00:00
IRCClient: Remove use of copy_ref().
This commit is contained in:
parent
433b6678c6
commit
6382c14faf
Notes:
sideshowbarker
2024-07-19 13:19:30 +09:00
Author: https://github.com/awesomekling Commit: https://github.com/SerenityOS/serenity/commit/6382c14faff
2 changed files with 3 additions and 3 deletions
|
@ -150,7 +150,7 @@ void IRCAppWindow::setup_widgets()
|
|||
toolbar->add_action(*m_change_nick_action);
|
||||
toolbar->add_separator();
|
||||
toolbar->add_action(*m_join_action);
|
||||
toolbar->add_action(*m_part_action.copy_ref());
|
||||
toolbar->add_action(*m_part_action);
|
||||
toolbar->add_separator();
|
||||
toolbar->add_action(*m_whois_action);
|
||||
toolbar->add_action(*m_open_query_action);
|
||||
|
|
|
@ -367,7 +367,7 @@ IRCQuery& IRCClient::ensure_query(const String& name)
|
|||
return *(*it).value;
|
||||
auto query = IRCQuery::create(*this, name);
|
||||
auto& query_reference = *query;
|
||||
m_queries.set(name, query.copy_ref());
|
||||
m_queries.set(name, query);
|
||||
return query_reference;
|
||||
}
|
||||
|
||||
|
@ -378,7 +378,7 @@ IRCChannel& IRCClient::ensure_channel(const String& name)
|
|||
return *(*it).value;
|
||||
auto channel = IRCChannel::create(*this, name);
|
||||
auto& channel_reference = *channel;
|
||||
m_channels.set(name, channel.copy_ref());
|
||||
m_channels.set(name, channel);
|
||||
return channel_reference;
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue