aboutsummaryrefslogtreecommitdiff
path: root/lib/eventitem.h
diff options
context:
space:
mode:
authorAlexey Rusakov <Kitsune-Ral@users.sf.net>2022-08-01 08:09:40 +0200
committerAlexey Rusakov <Kitsune-Ral@users.sf.net>2022-09-04 18:42:11 +0200
commit8e58d28ca0517aeeb43c99bd97ec9ba5ada11c95 (patch)
treec29da2261c6bd210d95615544989f8a550c758a0 /lib/eventitem.h
parentfc6321d53f7743f7629841d02c6e28e1a3ab3f83 (diff)
downloadlibquotient-8e58d28ca0517aeeb43c99bd97ec9ba5ada11c95.tar.gz
libquotient-8e58d28ca0517aeeb43c99bd97ec9ba5ada11c95.zip
CallEventBase -> CallEvent; pack up all call events
These are small enough to comfortably reside in a single translation unit.
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 {