diff options
author | Alexey Rusakov <Kitsune-Ral@users.sf.net> | 2021-08-22 20:58:18 +0200 |
---|---|---|
committer | Alexey Rusakov <Kitsune-Ral@users.sf.net> | 2021-08-22 20:58:18 +0200 |
commit | 3cbc13a33c81a75e18c415bd31cc2156461ffa1f (patch) | |
tree | c44fbeb9b8f9d2f1244eee7fe4f407c4b14b9ba2 | |
parent | 14d896c9d659d3d3c4f9c4d6eeb50e59a2a002a9 (diff) | |
download | libquotient-3cbc13a33c81a75e18c415bd31cc2156461ffa1f.tar.gz libquotient-3cbc13a33c81a75e18c415bd31cc2156461ffa1f.zip |
User::isGuest(): fix a clazy warning
-rw-r--r-- | lib/user.cpp | 2 |
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 == ':'; } |