From ba3da1a570cefc43c5d78d3af716432a478cdd9d Mon Sep 17 00:00:00 2001 From: Kitsune Ral Date: Fri, 5 Jun 2020 07:31:46 +0200 Subject: Avoid Qt 5.15 deprecation warning operator+() is no more wanted with iterators on associative containers. --- lib/room.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'lib/room.cpp') 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 -- cgit v1.2.3