From aef9617d1ec7f73a394ed4bb43b4436e27225176 Mon Sep 17 00:00:00 2001 From: Nicolas Werner Date: Sat, 16 Mar 2024 03:55:57 +0100 Subject: Make a few headers forward declarations --- src/CacheCryptoStructs.h | 11 +++++------ 1 file changed, 5 insertions(+), 6 deletions(-) (limited to 'src/CacheCryptoStructs.h') diff --git a/src/CacheCryptoStructs.h b/src/CacheCryptoStructs.h index 22c7bcf0..11644a2b 100644 --- a/src/CacheCryptoStructs.h +++ b/src/CacheCryptoStructs.h @@ -11,10 +11,13 @@ #include #include -#include #include #include +namespace mtx::events::msg { +struct Encrypted; +} + namespace crypto { Q_NAMESPACE QML_NAMED_ELEMENT(Crypto) @@ -96,11 +99,7 @@ from_json(const nlohmann::json &obj, DevicePublicKeys &msg); struct MegolmSessionIndex { MegolmSessionIndex() = default; - MegolmSessionIndex(std::string room_id_, const mtx::events::msg::Encrypted &e) - : room_id(std::move(room_id_)) - , session_id(e.session_id) - { - } + MegolmSessionIndex(std::string room_id_, const mtx::events::msg::Encrypted &e); //! The room in which this session exists. std::string room_id; -- cgit 1.5.1