aboutsummaryrefslogtreecommitdiff
path: root/lib/events/simplestateevents.h
diff options
context:
space:
mode:
authorKitsune Ral <Kitsune-Ral@users.sf.net>2018-11-04 15:38:05 +0900
committerKitsune Ral <Kitsune-Ral@users.sf.net>2018-11-04 15:38:05 +0900
commit04435ef1d621b18ad837cdcb4b06155952f51f0c (patch)
treea0466dd79b2259e9fa6955525caa21db11453455 /lib/events/simplestateevents.h
parentce3c66a55fce969753c587bd664fd51bd4fa900c (diff)
downloadlibquotient-04435ef1d621b18ad837cdcb4b06155952f51f0c.tar.gz
libquotient-04435ef1d621b18ad837cdcb4b06155952f51f0c.zip
DEFINE_SIMPLE_STATE_EVENT: fix value_type mistakenly dubbed as content_type
Diffstat (limited to 'lib/events/simplestateevents.h')
-rw-r--r--lib/events/simplestateevents.h6
1 files changed, 3 insertions, 3 deletions
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<EventContent::SimpleContent<_ContentType>> \
+#define DEFINE_SIMPLE_STATE_EVENT(_Name, _TypeId, _ValueType, _ContentKey) \
+ class _Name : public StateEvent<EventContent::SimpleContent<_ValueType>> \
{ \
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)) \