aboutsummaryrefslogtreecommitdiff
path: root/lib/events/event.h
diff options
context:
space:
mode:
Diffstat (limited to 'lib/events/event.h')
-rw-r--r--lib/events/event.h4
1 files changed, 3 insertions, 1 deletions
diff --git a/lib/events/event.h b/lib/events/event.h
index 8449c2ec..ed212759 100644
--- a/lib/events/event.h
+++ b/lib/events/event.h
@@ -100,6 +100,8 @@ namespace QMatrixClient
const QJsonObject contentJson() const;
+ virtual QJsonObject toJson() const { Q_ASSERT(false); }
+
private:
Type _type;
QJsonObject _originalJson;
@@ -273,7 +275,7 @@ namespace QMatrixClient
, _content(std::forward<ContentParamTs>(contentParams)...)
{ }
- QJsonObject toJson() const { return _content.toJson(); }
+ QJsonObject toJson() const override { return _content.toJson(); }
const ContentT& content() const { return _content; }
/** @deprecated Use prevContent instead */