From ed467d27b07781fdd2f7ddef043568954ce50b69 Mon Sep 17 00:00:00 2001 From: Kitsune Ral Date: Mon, 2 Jul 2018 13:39:33 +0900 Subject: 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... --- lib/events/redactionevent.h | 1 + 1 file changed, 1 insertion(+) (limited to 'lib/events/redactionevent.h') diff --git a/lib/events/redactionevent.h b/lib/events/redactionevent.h index 8c6cbeff..64504d57 100644 --- a/lib/events/redactionevent.h +++ b/lib/events/redactionevent.h @@ -36,5 +36,6 @@ namespace QMatrixClient QString reason() const { return contentJson()["reason"_ls].toString(); } }; + REGISTER_EVENT_TYPE(RedactionEvent) DEFINE_EVENTTYPE_ALIAS(Redaction, RedactionEvent) } // namespace QMatrixClient -- cgit v1.2.3