From 04435ef1d621b18ad837cdcb4b06155952f51f0c Mon Sep 17 00:00:00 2001 From: Kitsune Ral Date: Sun, 4 Nov 2018 15:38:05 +0900 Subject: DEFINE_SIMPLE_STATE_EVENT: fix value_type mistakenly dubbed as content_type --- lib/events/simplestateevents.h | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'lib/events/simplestateevents.h') diff --git a/lib/events/simplestateevents.h b/lib/events/simplestateevents.h index 56be947c..9a212612 100644 --- a/lib/events/simplestateevents.h +++ b/lib/events/simplestateevents.h @@ -59,11 +59,11 @@ namespace QMatrixClient }; } // namespace EventContent -#define DEFINE_SIMPLE_STATE_EVENT(_Name, _TypeId, _ContentType, _ContentKey) \ - class _Name : public StateEvent> \ +#define DEFINE_SIMPLE_STATE_EVENT(_Name, _TypeId, _ValueType, _ContentKey) \ + class _Name : public StateEvent> \ { \ public: \ - using content_type = _ContentType; \ + using value_type = content_type::value_type; \ DEFINE_EVENT_TYPEID(_TypeId, _Name) \ explicit _Name(const QJsonObject& obj) \ : StateEvent(typeId(), obj, QStringLiteral(#_ContentKey)) \ -- cgit v1.2.3