From 13bc7b8b784c2095a0187a1787f56f207528867e Mon Sep 17 00:00:00 2001 From: Kitsune Ral <Kitsune-Ral@users.sf.net> Date: Tue, 30 Jan 2018 16:49:05 +0900 Subject: Fix compilation with Clang Did two QChar::isDigit() overloads, one static and one member, confuse it? --- user.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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 == ':'; } -- cgit v1.2.3