aboutsummaryrefslogtreecommitdiff
path: root/lib/connection.cpp
diff options
context:
space:
mode:
authorKitsune Ral <Kitsune-Ral@users.sf.net>2020-12-24 18:20:04 +0100
committerKitsune Ral <Kitsune-Ral@users.sf.net>2020-12-24 22:29:29 +0100
commite617f0151df9a5edbefeb2c36d306a2989a278af (patch)
treec3c80fcab98a3bf3f0a017350f3f17956961fa98 /lib/connection.cpp
parent3bfe40e40183821557845456349e1079af7b4e25 (diff)
downloadlibquotient-e617f0151df9a5edbefeb2c36d306a2989a278af.tar.gz
libquotient-e617f0151df9a5edbefeb2c36d306a2989a278af.zip
Fix clang-tidy/clazy warnings
(cherry picked from commit 0a2acd750a4155969092be674ed3dd9a71b2354f)
Diffstat (limited to 'lib/connection.cpp')
-rw-r--r--lib/connection.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/connection.cpp b/lib/connection.cpp
index 386c6564..b76ca691 100644
--- a/lib/connection.cpp
+++ b/lib/connection.cpp
@@ -930,8 +930,8 @@ void Connection::doInDirectChat(User* u,
// There can be more than one DC; find the first valid (existing and
// not left), and delete inexistent (forgotten?) ones along the way.
DirectChatsMap removals;
- for (auto it = std::as_const(d->directChats).find(u);
- it != d->directChats.end() && it.key() == u; ++it) {
+ for (auto it = d->directChats.constFind(u);
+ it != d->directChats.cend() && it.key() == u; ++it) {
const auto& roomId = *it;
if (auto r = room(roomId, JoinState::Join)) {
Q_ASSERT(r->id() == roomId);