aboutsummaryrefslogtreecommitdiff
path: root/lib/user.cpp
diff options
context:
space:
mode:
authorKitsune Ral <Kitsune-Ral@users.sf.net>2020-12-24 18:20:04 +0100
committerKitsune Ral <Kitsune-Ral@users.sf.net>2020-12-24 18:20:04 +0100
commit0a2acd750a4155969092be674ed3dd9a71b2354f (patch)
tree37a45405633d2a229f60a478f05979218f8c7d38 /lib/user.cpp
parent1a832ae9b6a0d679b551fd644136e4bc17e7db29 (diff)
downloadlibquotient-0a2acd750a4155969092be674ed3dd9a71b2354f.tar.gz
libquotient-0a2acd750a4155969092be674ed3dd9a71b2354f.zip
Fix clang-tidy/clazy warnings
Diffstat (limited to 'lib/user.cpp')
-rw-r--r--lib/user.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/user.cpp b/lib/user.cpp
index 3c9652b0..85f9d9a7 100644
--- a/lib/user.cpp
+++ b/lib/user.cpp
@@ -101,7 +101,7 @@ QString User::id() const { return d->id; }
bool User::isGuest() const
{
Q_ASSERT(!d->id.isEmpty() && d->id.startsWith('@'));
- auto it = std::find_if_not(d->id.begin() + 1, d->id.end(),
+ auto it = std::find_if_not(d->id.cbegin() + 1, d->id.cend(),
[](QChar c) { return c.isDigit(); });
Q_ASSERT(it != d->id.end());
return *it == ':';
@@ -203,7 +203,7 @@ bool User::Private::doSetAvatar(SourceT&& source, User* q)
return;
}
- defaultAvatar->updateUrl(move(newUrl));
+ defaultAvatar->updateUrl(newUrl);
emit q->avatarChanged(q, nullptr);
});
});