diff options
author | Nicolas Werner <nicolas.werner@hotmail.de> | 2021-02-02 12:57:21 -0500 |
---|---|---|
committer | Nicolas Werner <nicolas.werner@hotmail.de> | 2021-02-02 12:57:21 -0500 |
commit | 935abee62e7165debd05e521244934a648e0d7c9 (patch) | |
tree | 93b3a925978492367314564992826ac846a8651e /src/ui | |
parent | Update format script again (diff) | |
download | nheko-935abee62e7165debd05e521244934a648e0d7c9.tar.xz |
Fix unused capture warning
Diffstat (limited to 'src/ui')
-rw-r--r-- | src/ui/UserProfile.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/ui/UserProfile.cpp b/src/ui/UserProfile.cpp index 3872294a..de02bf5e 100644 --- a/src/ui/UserProfile.cpp +++ b/src/ui/UserProfile.cpp @@ -244,7 +244,7 @@ UserProfile::changeUsername(QString username) if (isGlobalUserProfile()) { // change global http::client()->set_displayname( - username.toStdString(), [this](mtx::http::RequestErr err) { + username.toStdString(), [](mtx::http::RequestErr err) { if (err) { nhlog::net()->warn("could not change username"); return; @@ -293,4 +293,4 @@ UserProfile::setGlobalUsername(const QString &globalUser) { globalUsername = globalUser; emit displayNameChanged(); -} \ No newline at end of file +} |