From 6382c14faff8e8bd4a8683c13df53ade050ae1b2 Mon Sep 17 00:00:00 2001 From: Andreas Kling Date: Thu, 11 Jul 2019 16:03:54 +0200 Subject: [PATCH] IRCClient: Remove use of copy_ref(). --- Applications/IRCClient/IRCAppWindow.cpp | 2 +- Applications/IRCClient/IRCClient.cpp | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) 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; }