aboutsummaryrefslogtreecommitdiff
path: root/user.cpp
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:36:52 +0900
commit86c41b9d233918ebc3312d19fc8f702a0f5da789 (patch)
tree245d8d2559695c085cc419277c18c40ff99ac317 /user.cpp
parent0a80e38c1b425322d96dc662c6d47e3ca5fc2c86 (diff)
downloadlibquotient-86c41b9d233918ebc3312d19fc8f702a0f5da789.tar.gz
libquotient-86c41b9d233918ebc3312d19fc8f702a0f5da789.zip
User: Fixes in newly introduced methods
Diffstat (limited to 'user.cpp')
-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