diff options
author | Kitsune Ral <Kitsune-Ral@users.sf.net> | 2018-05-04 12:13:43 +0900 |
---|---|---|
committer | Kitsune Ral <Kitsune-Ral@users.sf.net> | 2018-05-04 13:11:56 +0900 |
commit | 28a0d70164e2596d306521cd18d25c0e8c0b5336 (patch) | |
tree | 96d5f6c936e2906800388b7b45ec3d57ffad04a4 /lib/events/event.cpp | |
parent | 844eddfffb8e1ee5d213371299dee0d15614bef8 (diff) | |
download | libquotient-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/event.cpp')
-rw-r--r-- | lib/events/event.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/events/event.cpp b/lib/events/event.cpp index 57049671..c2b92a50 100644 --- a/lib/events/event.cpp +++ b/lib/events/event.cpp @@ -76,7 +76,7 @@ template <typename BaseEventT, typename EventT, typename... EventTs> inline event_ptr_tt<BaseEventT> makeIfMatches(const QJsonObject& o, const QString& selector) { - if (selector == EventT::TypeId) + if (selector == EventT::typeId()) return _impl::create<EventT>(o); return makeIfMatches<BaseEventT, EventTs...>(o, selector); |