diff options
author | Kitsune Ral <Kitsune-Ral@users.sf.net> | 2018-08-12 09:26:51 +0900 |
---|---|---|
committer | Kitsune Ral <Kitsune-Ral@users.sf.net> | 2018-08-12 09:26:51 +0900 |
commit | ae46c0409cb1b67430e967afb06bb89ef51c5d77 (patch) | |
tree | 64537a60914825fa1be05cf0a411a13b731d44fe /lib | |
parent | 5773165cd9e5546016dc3cf3bd9538692eb6c19d (diff) | |
download | libquotient-ae46c0409cb1b67430e967afb06bb89ef51c5d77.tar.gz libquotient-ae46c0409cb1b67430e967afb06bb89ef51c5d77.zip |
Fix FTBFS (in a hacky way, needs a proper fix)
Diffstat (limited to 'lib')
-rw-r--r-- | lib/connection.cpp | 3 |
1 files changed, 2 insertions, 1 deletions
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<User*>(it.key())); // FIXME } d->broadcastDirectChatUpdates({}, removals); } |