diff options
author | Kitsune Ral <Kitsune-Ral@users.sf.net> | 2020-12-24 18:20:04 +0100 |
---|---|---|
committer | Kitsune Ral <Kitsune-Ral@users.sf.net> | 2020-12-24 18:20:04 +0100 |
commit | 0a2acd750a4155969092be674ed3dd9a71b2354f (patch) | |
tree | 37a45405633d2a229f60a478f05979218f8c7d38 /lib/connection.cpp | |
parent | 1a832ae9b6a0d679b551fd644136e4bc17e7db29 (diff) | |
download | libquotient-0a2acd750a4155969092be674ed3dd9a71b2354f.tar.gz libquotient-0a2acd750a4155969092be674ed3dd9a71b2354f.zip |
Fix clang-tidy/clazy warnings
Diffstat (limited to 'lib/connection.cpp')
-rw-r--r-- | lib/connection.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/connection.cpp b/lib/connection.cpp index 8c51c84c..b037bf49 100644 --- a/lib/connection.cpp +++ b/lib/connection.cpp @@ -929,8 +929,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); |