aboutsummaryrefslogtreecommitdiff
path: root/lib/user.cpp
diff options
context:
space:
mode:
authorAlexey Rusakov <Kitsune-Ral@users.sf.net>2021-08-22 20:58:18 +0200
committerAlexey Rusakov <Kitsune-Ral@users.sf.net>2021-08-22 20:58:18 +0200
commit3cbc13a33c81a75e18c415bd31cc2156461ffa1f (patch)
treec44fbeb9b8f9d2f1244eee7fe4f407c4b14b9ba2 /lib/user.cpp
parent14d896c9d659d3d3c4f9c4d6eeb50e59a2a002a9 (diff)
downloadlibquotient-3cbc13a33c81a75e18c415bd31cc2156461ffa1f.tar.gz
libquotient-3cbc13a33c81a75e18c415bd31cc2156461ffa1f.zip
User::isGuest(): fix a clazy warning
Diffstat (limited to 'lib/user.cpp')
-rw-r--r--lib/user.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/user.cpp b/lib/user.cpp
index a4abed37..2706b2c0 100644
--- a/lib/user.cpp
+++ b/lib/user.cpp
@@ -82,7 +82,7 @@ bool User::isGuest() const
Q_ASSERT(!d->id.isEmpty() && d->id.startsWith('@'));
auto it = std::find_if_not(d->id.cbegin() + 1, d->id.cend(),
[](QChar c) { return c.isDigit(); });
- Q_ASSERT(it != d->id.end());
+ Q_ASSERT(it != d->id.cend());
return *it == ':';
}