summary refs log tree commit diff
path: root/src
diff options
context:
space:
mode:
authorNicolas Werner <nicolas.werner@hotmail.de>2020-01-29 23:39:05 +0100
committerNicolas Werner <nicolas.werner@hotmail.de>2020-01-29 23:39:05 +0100
commita07e6998118ef62785f51fc0f59d1ca7ceb5be28 (patch)
tree88e126c469aab71865dba53a576c356bf9910673 /src
parentMerge branch '0.7.0-dev' of ssh://github.com/Nheko-Reborn/nheko into 0.7.0-dev (diff)
downloadnheko-a07e6998118ef62785f51fc0f59d1ca7ceb5be28.tar.xz
Fix build with build system optimizations of mtxclient
Diffstat (limited to 'src')
-rw-r--r--src/CacheStructs.h12
-rw-r--r--src/Utils.h2
2 files changed, 7 insertions, 7 deletions
diff --git a/src/CacheStructs.h b/src/CacheStructs.h

index 275d20cb..2051afc8 100644 --- a/src/CacheStructs.h +++ b/src/CacheStructs.h
@@ -29,10 +29,10 @@ struct ReadReceiptKey }; void -to_json(json &j, const ReadReceiptKey &key); +to_json(nlohmann::json &j, const ReadReceiptKey &key); void -from_json(const json &j, ReadReceiptKey &key); +from_json(const nlohmann::json &j, ReadReceiptKey &key); struct DescInfo { @@ -68,9 +68,9 @@ struct RoomInfo }; void -to_json(json &j, const RoomInfo &info); +to_json(nlohmann::json &j, const RoomInfo &info); void -from_json(const json &j, RoomInfo &info); +from_json(const nlohmann::json &j, RoomInfo &info); //! Basic information per member; struct MemberInfo @@ -80,9 +80,9 @@ struct MemberInfo }; void -to_json(json &j, const MemberInfo &info); +to_json(nlohmann::json &j, const MemberInfo &info); void -from_json(const json &j, MemberInfo &info); +from_json(const nlohmann::json &j, MemberInfo &info); struct RoomSearchResult { diff --git a/src/Utils.h b/src/Utils.h
index 505d8e6a..ea0df21f 100644 --- a/src/Utils.h +++ b/src/Utils.h
@@ -272,7 +272,7 @@ getMessageBody(const RoomMessageT &event) if (event.content.format.empty()) return QString::fromStdString(event.content.body).toHtmlEscaped(); - if (event.content.format != common::FORMAT_MSG_TYPE) + if (event.content.format != mtx::common::FORMAT_MSG_TYPE) return QString::fromStdString(event.content.body).toHtmlEscaped(); return QString::fromStdString(event.content.formatted_body);