aboutsummaryrefslogtreecommitdiff
path: root/lib/events/accountdataevents.h
diff options
context:
space:
mode:
authorKitsune Ral <Kitsune-Ral@users.sf.net>2018-05-04 12:13:43 +0900
committerKitsune Ral <Kitsune-Ral@users.sf.net>2018-05-04 13:11:56 +0900
commit28a0d70164e2596d306521cd18d25c0e8c0b5336 (patch)
tree96d5f6c936e2906800388b7b45ec3d57ffad04a4 /lib/events/accountdataevents.h
parent844eddfffb8e1ee5d213371299dee0d15614bef8 (diff)
downloadlibquotient-28a0d70164e2596d306521cd18d25c0e8c0b5336.tar.gz
libquotient-28a0d70164e2596d306521cd18d25c0e8c0b5336.zip
EvT::TypeId: Use a member function instead of a variable
The latter one causes linkage errors when used from a template method (but not from a template class, puzzlingly).
Diffstat (limited to 'lib/events/accountdataevents.h')
-rw-r--r--lib/events/accountdataevents.h3
1 files changed, 1 insertions, 2 deletions
diff --git a/lib/events/accountdataevents.h b/lib/events/accountdataevents.h
index f3ba27bb..11667172 100644
--- a/lib/events/accountdataevents.h
+++ b/lib/events/accountdataevents.h
@@ -54,8 +54,7 @@ namespace QMatrixClient
class _Name : public Event \
{ \
public: \
- static constexpr const char* TypeId = _TypeId; \
- static const char* typeId() { return TypeId; } \
+ static constexpr const char* typeId() { return _TypeId; } \
explicit _Name(const QJsonObject& obj) \
: Event((_EnumType), obj) \
, _content(contentJson(), QStringLiteral(#_ContentKey)) \