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 16:49:05 +0900 |
commit | 13bc7b8b784c2095a0187a1787f56f207528867e (patch) | |
tree | 96f28d1e1480bc5f5650965e9f14450016972ec7 | |
parent | eb88190b190e00f808903388052664f0c31d3a42 (diff) | |
download | libquotient-13bc7b8b784c2095a0187a1787f56f207528867e.tar.gz libquotient-13bc7b8b784c2095a0187a1787f56f207528867e.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 == ':'; } |