diff options
author | Kitsune Ral <Kitsune-Ral@users.sf.net> | 2018-01-30 16:17:03 +0900 |
---|---|---|
committer | Kitsune Ral <Kitsune-Ral@users.sf.net> | 2018-01-30 16:17:24 +0900 |
commit | eb88190b190e00f808903388052664f0c31d3a42 (patch) | |
tree | 27066d35242c8266c775f48c00ab42f33832db0e /user.cpp | |
parent | 20be17094ea2d371e98638f3988dff0d65fae917 (diff) | |
download | libquotient-eb88190b190e00f808903388052664f0c31d3a42.tar.gz libquotient-eb88190b190e00f808903388052664f0c31d3a42.zip |
Fix compatibility with Qt before 5.10
Diffstat (limited to 'user.cpp')
-rw-r--r-- | user.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -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()); |