aboutsummaryrefslogtreecommitdiff
path: root/lib/events/receiptevent.h
diff options
context:
space:
mode:
Diffstat (limited to 'lib/events/receiptevent.h')
-rw-r--r--lib/events/receiptevent.h10
1 files changed, 2 insertions, 8 deletions
diff --git a/lib/events/receiptevent.h b/lib/events/receiptevent.h
index dd54a476..b7adea44 100644
--- a/lib/events/receiptevent.h
+++ b/lib/events/receiptevent.h
@@ -37,15 +37,9 @@ using EventsWithReceipts = QVector<ReceiptsForEvent>;
class ReceiptEvent : public Event {
public:
DEFINE_EVENT_TYPEID("m.receipt", ReceiptEvent)
- explicit ReceiptEvent(const QJsonObject& obj);
+ explicit ReceiptEvent(const QJsonObject& obj) : Event(typeId(), obj) {}
- const EventsWithReceipts& eventsWithReceipts() const
- {
- return _eventsWithReceipts;
- }
-
-private:
- EventsWithReceipts _eventsWithReceipts;
+ EventsWithReceipts eventsWithReceipts() const;
};
REGISTER_EVENT_TYPE(ReceiptEvent)
} // namespace Quotient