aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorKitsune Ral <Kitsune-Ral@users.sf.net>2018-01-30 20:36:52 +0900
committerKitsune Ral <Kitsune-Ral@users.sf.net>2018-01-30 20:37:39 +0900
commit75542386eaf7a6e4ecd064401f2c3373c48f3cd3 (patch)
treef00f20e73e515c4877ed11f6f6d6dbcce2766571
parent13bc7b8b784c2095a0187a1787f56f207528867e (diff)
downloadlibquotient-75542386eaf7a6e4ecd064401f2c3373c48f3cd3.tar.gz
libquotient-75542386eaf7a6e4ecd064401f2c3373c48f3cd3.zip
User: Fixes in newly introduced methods
-rw-r--r--user.cpp4
1 files 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