diff options
author | Alexey Rusakov <Kitsune-Ral@users.sf.net> | 2022-06-04 22:35:06 +0200 |
---|---|---|
committer | Alexey Rusakov <Kitsune-Ral@users.sf.net> | 2022-06-04 22:35:06 +0200 |
commit | 2ecc08357fab7d22947b9cb5251d2f29be2ec55b (patch) | |
tree | 646eda87c53c43ccb1dd3e7c4e8fd24608b5faec /lib/room.cpp | |
parent | 90ee70312e5387a289bc12b4e37c48844906bc35 (diff) | |
download | libquotient-2ecc08357fab7d22947b9cb5251d2f29be2ec55b.tar.gz libquotient-2ecc08357fab7d22947b9cb5251d2f29be2ec55b.zip |
Address Sonar warnings
Diffstat (limited to 'lib/room.cpp')
-rw-r--r-- | lib/room.cpp | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/lib/room.cpp b/lib/room.cpp index 9e2a5053..284d19df 100644 --- a/lib/room.cpp +++ b/lib/room.cpp @@ -1531,7 +1531,7 @@ QStringList Room::safeMemberNames() const { QStringList res; res.reserve(d->membersMap.size()); - for (auto u: std::as_const(d->membersMap)) + for (const auto* u: std::as_const(d->membersMap)) res.append(safeMemberName(u->id())); return res; @@ -1541,7 +1541,7 @@ QStringList Room::htmlSafeMemberNames() const { QStringList res; res.reserve(d->membersMap.size()); - for (auto u: std::as_const(d->membersMap)) + for (const auto* u: std::as_const(d->membersMap)) res.append(htmlSafeMemberName(u->id())); return res; @@ -3378,7 +3378,7 @@ QString Room::Private::calculateDisplayname() const shortlist = buildShortlist(membersLeft); QStringList names; - for (auto u : shortlist) { + for (const auto* u : shortlist) { if (u == nullptr || isLocalUser(u)) break; // Only disambiguate if the room is not empty |