From 75542386eaf7a6e4ecd064401f2c3373c48f3cd3 Mon Sep 17 00:00:00 2001 From: Kitsune Ral Date: Tue, 30 Jan 2018 20:36:52 +0900 Subject: User: Fixes in newly introduced methods --- user.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/user.cpp b/user.cpp index b07cf688..c80ec883 100644 --- a/user.cpp +++ b/user.cpp @@ -73,7 +73,7 @@ bool User::isGuest() const Q_ASSERT(!d->userId.isEmpty() && d->userId.startsWith('@')); auto it = std::find_if_not(d->userId.begin() + 1, d->userId.end(), [] (QChar c) { return c.isDigit(); }); - Q_ASSERT(it == d->userId.end()); + Q_ASSERT(it != d->userId.end()); return *it == ':'; } @@ -139,7 +139,7 @@ QString User::displayname() const QString User::fullName() const { return d->name.isEmpty() ? d->userId : - d->name % '(' % d->userId % ')'; + d->name % " (" % d->userId % ')'; } QString User::bridged() const -- cgit v1.2.3