diff options
author | Kitsune Ral <Kitsune-Ral@users.sf.net> | 2020-06-05 07:31:46 +0200 |
---|---|---|
committer | Kitsune Ral <Kitsune-Ral@users.sf.net> | 2020-06-05 07:48:52 +0200 |
commit | ba3da1a570cefc43c5d78d3af716432a478cdd9d (patch) | |
tree | f9b6b5471668ad934d408a73a26f5d801e3fd210 /lib | |
parent | db8b9569f83ba3643c9005359ba556f2c3e357f4 (diff) | |
download | libquotient-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')
-rw-r--r-- | lib/room.cpp | 4 |
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 |