diff options
author | Kitsune Ral <Kitsune-Ral@users.sf.net> | 2018-01-30 16:49:05 +0900 |
---|---|---|
committer | Kitsune Ral <Kitsune-Ral@users.sf.net> | 2018-01-30 17:47:10 +0900 |
commit | 0a80e38c1b425322d96dc662c6d47e3ca5fc2c86 (patch) | |
tree | 2e5c10a76ffca28d0f5921ba570e0fc5e119ddb3 | |
parent | db398e7134f3a7b6cd7f4281add1decfeb961a55 (diff) | |
download | libquotient-0a80e38c1b425322d96dc662c6d47e3ca5fc2c86.tar.gz libquotient-0a80e38c1b425322d96dc662c6d47e3ca5fc2c86.zip |
Fix compilation with Clang
Did two QChar::isDigit() overloads, one static and one member, confuse it?
-rw-r--r-- | user.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -72,7 +72,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(), - std::mem_fn(&QChar::isDigit)); + [] (QChar c) { return c.isDigit(); }); Q_ASSERT(it == d->userId.end()); return *it == ':'; } |