summary refs log tree commit diff
path: root/src/encryption/Olm.cpp
diff options
context:
space:
mode:
authorLoren Burkholder <55629213+LorenDB@users.noreply.github.com>2022-10-03 17:57:30 -0400
committerGitHub <noreply@github.com>2022-10-03 21:57:30 +0000
commit8ecbb39dc6303fcf3ae36ad033d7e90ea29b9003 (patch)
treeccbf44824e2a038254ce77ae3890d2d6d86b0a94 /src/encryption/Olm.cpp
parentMerge pull request #1202 from Nheko-Reborn/grammar (diff)
downloadnheko-8ecbb39dc6303fcf3ae36ad033d7e90ea29b9003.tar.xz
cppcheck stuff (#1200)
* cppcheck stuff

* Update src/ui/RoomSettings.cpp

Co-authored-by: DeepBlueV7.X <nicolas.werner@hotmail.de>

* Update src/ui/RoomSettings.cpp

Co-authored-by: DeepBlueV7.X <nicolas.werner@hotmail.de>

* Fix linting

Co-authored-by: DeepBlueV7.X <nicolas.werner@hotmail.de>
Diffstat (limited to 'src/encryption/Olm.cpp')
-rw-r--r--src/encryption/Olm.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/encryption/Olm.cpp b/src/encryption/Olm.cpp

index 6ab55b32..03d0e983 100644 --- a/src/encryption/Olm.cpp +++ b/src/encryption/Olm.cpp
@@ -951,7 +951,7 @@ download_full_keybackup() }); } void -lookup_keybackup(const std::string room, const std::string session_id) +lookup_keybackup(const std::string &room, const std::string &session_id) { if (!UserSettings::instance()->useOnlineKeyBackup()) { // Online key backup disabled @@ -1283,7 +1283,7 @@ calculate_trust(const std::string &user_id, const MegolmSessionIndex &index) //! Send encrypted to device messages, targets is a map from userid to device ids or {} for all //! devices void -send_encrypted_to_device_messages(const std::map<std::string, std::vector<std::string>> targets, +send_encrypted_to_device_messages(const std::map<std::string, std::vector<std::string>> &targets, const mtx::events::collections::DeviceEvents &event, bool force_new_session) {