From eb88190b190e00f808903388052664f0c31d3a42 Mon Sep 17 00:00:00 2001 From: Kitsune Ral Date: Tue, 30 Jan 2018 16:17:03 +0900 Subject: Fix compatibility with Qt before 5.10 --- user.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'user.cpp') diff --git a/user.cpp b/user.cpp index 6cc2e0a5..7217413b 100644 --- a/user.cpp +++ b/user.cpp @@ -70,7 +70,7 @@ QString User::id() const bool User::isGuest() const { - Q_ASSERT(!d->userId.isEmpty() && d->userId.front() == '@'); + 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)); Q_ASSERT(it == d->userId.end()); -- cgit v1.2.3