Browse Source

IRCClient: Remove use of copy_ref().

Andreas Kling 6 years ago
parent
commit
6382c14faf
2 changed files with 3 additions and 3 deletions
  1. 1 1
      Applications/IRCClient/IRCAppWindow.cpp
  2. 2 2
      Applications/IRCClient/IRCClient.cpp

+ 1 - 1
Applications/IRCClient/IRCAppWindow.cpp

@@ -150,7 +150,7 @@ void IRCAppWindow::setup_widgets()
     toolbar->add_action(*m_change_nick_action);
     toolbar->add_action(*m_change_nick_action);
     toolbar->add_separator();
     toolbar->add_separator();
     toolbar->add_action(*m_join_action);
     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_separator();
     toolbar->add_action(*m_whois_action);
     toolbar->add_action(*m_whois_action);
     toolbar->add_action(*m_open_query_action);
     toolbar->add_action(*m_open_query_action);

+ 2 - 2
Applications/IRCClient/IRCClient.cpp

@@ -367,7 +367,7 @@ IRCQuery& IRCClient::ensure_query(const String& name)
         return *(*it).value;
         return *(*it).value;
     auto query = IRCQuery::create(*this, name);
     auto query = IRCQuery::create(*this, name);
     auto& query_reference = *query;
     auto& query_reference = *query;
-    m_queries.set(name, query.copy_ref());
+    m_queries.set(name, query);
     return query_reference;
     return query_reference;
 }
 }
 
 
@@ -378,7 +378,7 @@ IRCChannel& IRCClient::ensure_channel(const String& name)
         return *(*it).value;
         return *(*it).value;
     auto channel = IRCChannel::create(*this, name);
     auto channel = IRCChannel::create(*this, name);
     auto& channel_reference = *channel;
     auto& channel_reference = *channel;
-    m_channels.set(name, channel.copy_ref());
+    m_channels.set(name, channel);
     return channel_reference;
     return channel_reference;
 }
 }