aboutsummaryrefslogtreecommitdiff
path: root/user.cpp
diff options
context:
space:
mode:
authorKitsune Ral <Kitsune-Ral@users.sf.net>2018-01-30 16:17:03 +0900
committerKitsune Ral <Kitsune-Ral@users.sf.net>2018-01-30 16:17:03 +0900
commitdb5d99c8b3f68b116fc55a4563bb66db4bf82cf8 (patch)
treef74eec915eceeb40cdb5f0b654f6f48b21005cf5 /user.cpp
parent038471e340c51f36f612fbb19d8a2b60a9923973 (diff)
downloadlibquotient-db5d99c8b3f68b116fc55a4563bb66db4bf82cf8.tar.gz
libquotient-db5d99c8b3f68b116fc55a4563bb66db4bf82cf8.zip
Fix compatibility with Qt before 5.10
Diffstat (limited to 'user.cpp')
-rw-r--r--user.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/user.cpp b/user.cpp
index 6cc2e0a5..7217413b 100644
--- a/user.cpp
+++ b/user.cpp
@@ -70,7 +70,7 @@ QString User::id() const
bool User::isGuest() const
{
- Q_ASSERT(!d->userId.isEmpty() && d->userId.front() == '@');
+ Q_ASSERT(!d->userId.isEmpty() && d->userId.startsWith('@'));
auto it = std::find_if_not(d->userId.begin() + 1, d->userId.end(),
std::mem_fn(&QChar::isDigit));
Q_ASSERT(it == d->userId.end());