diff --git a/Applications/IRCClient/IRCAppWindow.cpp b/Applications/IRCClient/IRCAppWindow.cpp index 36ce7ee383b..3cbc7d6f7e6 100644 --- a/Applications/IRCClient/IRCAppWindow.cpp +++ b/Applications/IRCClient/IRCAppWindow.cpp @@ -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); diff --git a/Applications/IRCClient/IRCClient.cpp b/Applications/IRCClient/IRCClient.cpp index aaff6f24a85..976c2256d19 100644 --- a/Applications/IRCClient/IRCClient.cpp +++ b/Applications/IRCClient/IRCClient.cpp @@ -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; }