aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorKitsune Ral <Kitsune-Ral@users.sf.net>2018-01-30 16:49:05 +0900
committerKitsune Ral <Kitsune-Ral@users.sf.net>2018-01-30 16:49:05 +0900
commit13bc7b8b784c2095a0187a1787f56f207528867e (patch)
tree96f28d1e1480bc5f5650965e9f14450016972ec7
parenteb88190b190e00f808903388052664f0c31d3a42 (diff)
downloadlibquotient-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.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/user.cpp b/user.cpp
index 7217413b..b07cf688 100644
--- a/user.cpp
+++ b/user.cpp
@@ -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 == ':';
}