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:36:52 +0900 |
commit | 86c41b9d233918ebc3312d19fc8f702a0f5da789 (patch) | |
tree | 245d8d2559695c085cc419277c18c40ff99ac317 /user.cpp | |
parent | 0a80e38c1b425322d96dc662c6d47e3ca5fc2c86 (diff) | |
download | libquotient-86c41b9d233918ebc3312d19fc8f702a0f5da789.tar.gz libquotient-86c41b9d233918ebc3312d19fc8f702a0f5da789.zip |
User: Fixes in newly introduced methods
Diffstat (limited to 'user.cpp')
-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 |