IRCClient: Remove use of copy_ref().

This commit is contained in:
Andreas Kling 2019-07-11 16:03:54 +02:00
parent 433b6678c6
commit 6382c14faf
Notes: sideshowbarker 2024-07-19 13:19:30 +09:00
2 changed files with 3 additions and 3 deletions

View file

@ -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);

View file

@ -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;
}