summaryrefslogtreecommitdiff
path: root/Applications/IRCClient/IRCClient.cpp
diff options
context:
space:
mode:
authorAndreas Kling <kling@serenityos.org>2020-02-16 19:36:15 +0100
committerAndreas Kling <kling@serenityos.org>2020-02-16 21:58:17 +0100
commita6e69bda71440f40d6c9d289258a69c0942b90ba (patch)
tree7cc2c0f131f0812d020fb4bfc08a097935711f13 /Applications/IRCClient/IRCClient.cpp
parent9794e18a20e026f0a377c8bc90fe5eb9909dae8b (diff)
downloadserenity-a6e69bda71440f40d6c9d289258a69c0942b90ba.zip
AK: Add basic Traits for RefPtr
This allows RefPtr to be stored in a HashTable<RefPtr<T>> :^) It's unfortunate about the const_casts. We'll need to fix HashMap::get to play nice with non-const Traits<T>::PeekType at some point.
Diffstat (limited to 'Applications/IRCClient/IRCClient.cpp')
-rw-r--r--Applications/IRCClient/IRCClient.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/Applications/IRCClient/IRCClient.cpp b/Applications/IRCClient/IRCClient.cpp
index f4fa61cd42..be027cfe45 100644
--- a/Applications/IRCClient/IRCClient.cpp
+++ b/Applications/IRCClient/IRCClient.cpp
@@ -436,7 +436,7 @@ void IRCClient::handle_privmsg_or_notice(const Message& msg, PrivmsgOrNotice typ
IRCQuery* IRCClient::query_with_name(const String& name)
{
- return m_queries.get(name).value_or(nullptr);
+ return const_cast<IRCQuery*>(m_queries.get(name).value_or(nullptr));
}
IRCQuery& IRCClient::ensure_query(const String& name)