diff options
author | Nicolas Werner <nicolas.werner@hotmail.de> | 2021-02-09 17:00:06 +0100 |
---|---|---|
committer | Nicolas Werner <nicolas.werner@hotmail.de> | 2021-02-09 17:00:06 +0100 |
commit | 8d95532b2840916897233e505a47e52472afb873 (patch) | |
tree | 756e87a27366afa59d50704970ceeabfabeee890 /src | |
parent | Remove unused variables (diff) | |
download | nheko-8d95532b2840916897233e505a47e52472afb873.tar.xz |
Fix linting
Diffstat (limited to 'src')
-rw-r--r-- | src/ui/UserProfile.cpp | 22 |
1 files changed, 11 insertions, 11 deletions
diff --git a/src/ui/UserProfile.cpp b/src/ui/UserProfile.cpp index eb15705c..77f6ced5 100644 --- a/src/ui/UserProfile.cpp +++ b/src/ui/UserProfile.cpp @@ -314,8 +314,8 @@ UserProfile::changeAvatar() return; } - const auto bin = file.peek(file.size()); - const auto payload = std::string(bin.data(), bin.size()); + const auto bin = file.peek(file.size()); + const auto payload = std::string(bin.data(), bin.size()); isLoading_ = true; emit loadingChanged(); @@ -365,15 +365,15 @@ UserProfile::changeAvatar() void UserProfile::updateRoomMemberState(mtx::events::state::Member member) { - http::client()->send_state_event( - roomid_.toStdString(), - http::client()->user_id().to_string(), - member, - [](mtx::responses::EventId, mtx::http::RequestErr err) { - if (err) - nhlog::net()->error("Failed to update room member state : ", - err->matrix_error.error); - }); + http::client()->send_state_event(roomid_.toStdString(), + http::client()->user_id().to_string(), + member, + [](mtx::responses::EventId, mtx::http::RequestErr err) { + if (err) + nhlog::net()->error( + "Failed to update room member state : ", + err->matrix_error.error); + }); } void |