diff options
author | Kitsune Ral <Kitsune-Ral@users.sf.net> | 2020-12-28 16:02:00 +0100 |
---|---|---|
committer | Kitsune Ral <Kitsune-Ral@users.sf.net> | 2020-12-28 16:02:00 +0100 |
commit | a49c3f2eb4e1aa5c6687c7637c1a06fcd69b0a23 (patch) | |
tree | 1362b0fe3327cfd46121f612d1e66a8d5a56098e | |
parent | dcef98f962c29b004d5d9fff1cff0102c6c9768f (diff) | |
download | libquotient-a49c3f2eb4e1aa5c6687c7637c1a06fcd69b0a23.tar.gz libquotient-a49c3f2eb4e1aa5c6687c7637c1a06fcd69b0a23.zip |
Room: inline a once-used variable
-rw-r--r-- | lib/room.cpp | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/lib/room.cpp b/lib/room.cpp index 5346c4ff..a9b2ba30 100644 --- a/lib/room.cpp +++ b/lib/room.cpp @@ -1401,8 +1401,7 @@ void Room::Private::removeMemberFromMap(User* u) Q_ASSERT_X(namesake != u, __FUNCTION__, "Room members list is broken"); emit q->memberAboutToRename(namesake, userName); } - const auto removed = membersMap.remove(userName, u); - if (removed == 0) { + if (membersMap.remove(userName, u) == 0) { qCDebug(MEMBERS) << "No entries removed; checking the whole list"; // Unless at the stage of initial filling, this no removed entries // is suspicious; double-check that this user is not found in |