diff options
author | Kitsune Ral <Kitsune-Ral@users.sf.net> | 2018-01-30 20:36:52 +0900 |
---|---|---|
committer | Kitsune Ral <Kitsune-Ral@users.sf.net> | 2018-01-30 20:37:39 +0900 |
commit | 75542386eaf7a6e4ecd064401f2c3373c48f3cd3 (patch) | |
tree | f00f20e73e515c4877ed11f6f6d6dbcce2766571 | |
parent | 13bc7b8b784c2095a0187a1787f56f207528867e (diff) | |
download | libquotient-75542386eaf7a6e4ecd064401f2c3373c48f3cd3.tar.gz libquotient-75542386eaf7a6e4ecd064401f2c3373c48f3cd3.zip |
User: Fixes in newly introduced methods
-rw-r--r-- | user.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
@@ -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 |