aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorKitsune Ral <Kitsune-Ral@users.sf.net>2018-07-08 10:53:33 +0900
committerKitsune Ral <Kitsune-Ral@users.sf.net>2018-07-08 10:58:24 +0900
commit24578e84ea325456c5635ec7ac46f9a818d3befe (patch)
treef4061eeb11def5afc446548c51f4f1ea684eac56
parent97acdeeb4249bf4b8660425d080de4499266895b (diff)
downloadlibquotient-24578e84ea325456c5635ec7ac46f9a818d3befe.tar.gz
libquotient-24578e84ea325456c5635ec7ac46f9a818d3befe.zip
TimelineItem::viewAs(): fix a typo
-rw-r--r--lib/room.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/room.h b/lib/room.h
index 7216d625..500ac8ba 100644
--- a/lib/room.h
+++ b/lib/room.h
@@ -56,7 +56,7 @@ namespace QMatrixClient
const RoomEvent* event() const { return rawPtr(evt); }
const RoomEvent* get() const { return event(); }
template <typename EventT>
- const EventT* viewAs() const { return eventCast<const EventT*>(evt); }
+ const EventT* viewAs() const { return eventCast<const EventT>(evt); }
const RoomEventPtr& operator->() const { return evt; }
const RoomEvent& operator*() const { return *evt; }
index_t index() const { return idx; }