aboutsummaryrefslogtreecommitdiff
path: root/lib/room.cpp
diff options
context:
space:
mode:
authorKitsune Ral <Kitsune-Ral@users.sf.net>2020-06-05 07:31:46 +0200
committerKitsune Ral <Kitsune-Ral@users.sf.net>2020-06-05 07:48:52 +0200
commitba3da1a570cefc43c5d78d3af716432a478cdd9d (patch)
treef9b6b5471668ad934d408a73a26f5d801e3fd210 /lib/room.cpp
parentdb8b9569f83ba3643c9005359ba556f2c3e357f4 (diff)
downloadlibquotient-ba3da1a570cefc43c5d78d3af716432a478cdd9d.tar.gz
libquotient-ba3da1a570cefc43c5d78d3af716432a478cdd9d.zip
Avoid Qt 5.15 deprecation warning
operator+() is no more wanted with iterators on associative containers.
Diffstat (limited to 'lib/room.cpp')
-rw-r--r--lib/room.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/room.cpp b/lib/room.cpp
index fa6971c9..23e07cae 100644
--- a/lib/room.cpp
+++ b/lib/room.cpp
@@ -1425,8 +1425,8 @@ QString Room::roomMembername(const User* u) const
if (namesakesIt == d->membersMap.cend())
return u->fullName(this);
- auto nextUserIt = namesakesIt + 1;
- if (nextUserIt == d->membersMap.cend() || nextUserIt.key() != username)
+ auto nextUserIt = namesakesIt;
+ if (++nextUserIt == d->membersMap.cend() || nextUserIt.key() != username)
return username; // No disambiguation necessary
// Check if we can get away just attaching the bridge postfix