aboutsummaryrefslogtreecommitdiff
path: root/user.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'user.cpp')
-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 == ':';
}