aboutsummaryrefslogtreecommitdiff
path: root/lib/eventitem.h
diff options
context:
space:
mode:
Diffstat (limited to 'lib/eventitem.h')
-rw-r--r--lib/eventitem.h5
1 files changed, 3 insertions, 2 deletions
diff --git a/lib/eventitem.h b/lib/eventitem.h
index 90d9f458..2e55a724 100644
--- a/lib/eventitem.h
+++ b/lib/eventitem.h
@@ -5,6 +5,7 @@
#include "quotient_common.h"
+#include "events/callevents.h"
#include "events/filesourceinfo.h"
#include "events/stateevent.h"
@@ -101,9 +102,9 @@ inline const StateEventBase* EventItemBase::viewAs<StateEventBase>() const
}
template <>
-inline const CallEventBase* EventItemBase::viewAs<CallEventBase>() const
+inline const CallEvent* EventItemBase::viewAs<CallEvent>() const
{
- return evt->isCallEvent() ? weakPtrCast<const CallEventBase>(evt) : nullptr;
+ return evt->is<CallEvent>() ? weakPtrCast<const CallEvent>(evt) : nullptr;
}
class QUOTIENT_API PendingEventItem : public EventItemBase {