diff options
Diffstat (limited to 'lib/events')
-rw-r--r-- | lib/events/event.h | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/lib/events/event.h b/lib/events/event.h index 4024c6f8..f12e525e 100644 --- a/lib/events/event.h +++ b/lib/events/event.h @@ -120,8 +120,9 @@ namespace _impl { template <typename BaseEventT> class EventFactory : public _impl::EventFactoryBase { private: - std::vector<event_ptr_tt<BaseEventT> (*)(const QJsonObject&, const QString&)> - methods {}; + using method_t = event_ptr_tt<BaseEventT> (*)(const QJsonObject&, + const QString&); + std::vector<method_t> methods {}; template <class EventT> static event_ptr_tt<BaseEventT> makeIfMatches(const QJsonObject& json, |