From ae46c0409cb1b67430e967afb06bb89ef51c5d77 Mon Sep 17 00:00:00 2001 From: Kitsune Ral Date: Sun, 12 Aug 2018 09:26:51 +0900 Subject: Fix FTBFS (in a hacky way, needs a proper fix) --- lib/connection.cpp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'lib') diff --git a/lib/connection.cpp b/lib/connection.cpp index 48d3a532..017180c4 100644 --- a/lib/connection.cpp +++ b/lib/connection.cpp @@ -599,7 +599,8 @@ void Connection::doInDirectChat(User* u, for (auto it = removals.cbegin(); it != removals.cend(); ++it) { d->directChats.remove(it.key(), it.value()); - d->directChatUsers.remove(it.value(), it.key()); + d->directChatUsers.remove(it.value(), + const_cast(it.key())); // FIXME } d->broadcastDirectChatUpdates({}, removals); } -- cgit v1.2.3