aboutsummaryrefslogtreecommitdiff
path: root/lib/eventitem.h
diff options
context:
space:
mode:
authorAlexey Rusakov <Kitsune-Ral@users.sf.net>2022-08-10 21:54:15 +0200
committerAlexey Rusakov <Kitsune-Ral@users.sf.net>2022-09-04 18:42:11 +0200
commit7251d6856993a08dd8ec1d4965a310e4cf8e97d3 (patch)
treed5647a3990f6f00c4d1ef459ac9c6f54e87f042a /lib/eventitem.h
parentbde38f86337d6f49b34b38016ab088d2f48ec371 (diff)
downloadlibquotient-7251d6856993a08dd8ec1d4965a310e4cf8e97d3.tar.gz
libquotient-7251d6856993a08dd8ec1d4965a310e4cf8e97d3.zip
StateEventBase -> StateEvent
Now that StateEvent name is vacated, the naming for event core classes can be completely unified: Event, RoomEvent, CallEvent, StateEvent.
Diffstat (limited to 'lib/eventitem.h')
-rw-r--r--lib/eventitem.h5
1 files changed, 2 insertions, 3 deletions
diff --git a/lib/eventitem.h b/lib/eventitem.h
index 445f8265..96e45b38 100644
--- a/lib/eventitem.h
+++ b/lib/eventitem.h
@@ -95,10 +95,9 @@ private:
};
template <>
-inline const StateEventBase* EventItemBase::viewAs<StateEventBase>() const
+inline const StateEvent* EventItemBase::viewAs<StateEvent>() const
{
- return evt->isStateEvent() ? weakPtrCast<const StateEventBase>(evt)
- : nullptr;
+ return evt->isStateEvent() ? weakPtrCast<const StateEvent>(evt) : nullptr;
}
template <>