aboutsummaryrefslogtreecommitdiff
path: root/lib/events/simplestateevents.h
diff options
context:
space:
mode:
authorKitsune Ral <Kitsune-Ral@users.sf.net>2018-07-02 13:39:33 +0900
committerKitsune Ral <Kitsune-Ral@users.sf.net>2018-07-04 20:12:34 +0900
commited467d27b07781fdd2f7ddef043568954ce50b69 (patch)
treea0782b0d87de8cbd851c6a008764dd6ae07836db /lib/events/simplestateevents.h
parentbd853f392aaf5b05e0a8023da85a38e91d90a6e0 (diff)
downloadlibquotient-ed467d27b07781fdd2f7ddef043568954ce50b69.tar.gz
libquotient-ed467d27b07781fdd2f7ddef043568954ce50b69.zip
Events: use a template structure instead of template variables; rearrange code into blocks
A template member variable in it seemed to cause internal compiler error in MSVC 2017, let alone MSVC 2015...
Diffstat (limited to 'lib/events/simplestateevents.h')
-rw-r--r--lib/events/simplestateevents.h4
1 files changed, 3 insertions, 1 deletions
diff --git a/lib/events/simplestateevents.h b/lib/events/simplestateevents.h
index a117efb1..afd59478 100644
--- a/lib/events/simplestateevents.h
+++ b/lib/events/simplestateevents.h
@@ -73,7 +73,9 @@ namespace QMatrixClient
std::forward<T>(value)) \
{ } \
auto _ContentKey() const { return content().value; } \
- }; // End of macro
+ }; \
+ REGISTER_EVENT_TYPE(_Name) \
+ // End of macro
DEFINE_SIMPLE_STATE_EVENT(RoomNameEvent, "m.room.name", QString, name)
DEFINE_EVENTTYPE_ALIAS(RoomName, RoomNameEvent)