diff options
-rw-r--r-- | user.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -70,7 +70,7 @@ QString User::id() const bool User::isGuest() const { - Q_ASSERT(!d->userId.isEmpty() && d->userId.front() == '@'); + Q_ASSERT(!d->userId.isEmpty() && d->userId.startsWith('@')); auto it = std::find_if_not(d->userId.begin() + 1, d->userId.end(), std::mem_fn(&QChar::isDigit)); Q_ASSERT(it == d->userId.end()); |