aboutsummaryrefslogtreecommitdiff
path: root/lib/user.cpp
diff options
context:
space:
mode:
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 45a9c121..c399ce88 100644
--- a/lib/user.cpp
+++ b/lib/user.cpp
@@ -78,7 +78,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 == ':';
@@ -138,7 +138,7 @@ inline bool User::doSetAvatar(SourceT&& source)
connect(j, &BaseJob::success, this,
[this, newUrl = QUrl(contentUri)] {
if (newUrl == d->defaultAvatar.url()) {
- d->defaultAvatar.updateUrl(move(newUrl));
+ d->defaultAvatar.updateUrl(newUrl);
emit defaultAvatarChanged();
} else
qCWarning(MAIN) << "User" << id()