From 8ecbb39dc6303fcf3ae36ad033d7e90ea29b9003 Mon Sep 17 00:00:00 2001 From: Loren Burkholder <55629213+LorenDB@users.noreply.github.com> Date: Mon, 3 Oct 2022 17:57:30 -0400 Subject: cppcheck stuff (#1200) * cppcheck stuff * Update src/ui/RoomSettings.cpp Co-authored-by: DeepBlueV7.X * Update src/ui/RoomSettings.cpp Co-authored-by: DeepBlueV7.X * Fix linting Co-authored-by: DeepBlueV7.X --- src/encryption/Olm.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'src/encryption/Olm.cpp') 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> targets, +send_encrypted_to_device_messages(const std::map> &targets, const mtx::events::collections::DeviceEvents &event, bool force_new_session) { -- cgit 1.5.1