aboutsummaryrefslogtreecommitdiff
path: root/lib/room.h
diff options
context:
space:
mode:
Diffstat (limited to 'lib/room.h')
-rw-r--r--lib/room.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/room.h b/lib/room.h
index cdec9567..f2a372e9 100644
--- a/lib/room.h
+++ b/lib/room.h
@@ -52,7 +52,7 @@ namespace QMatrixClient
const RoomEvent* event() const { return rawPtr(evt); }
template <typename EventT>
- const EventT* viewAs() const { return weakPtr<const EventT>(evt); }
+ const EventT* viewAs() const { return weakPtrCast<const EventT>(evt); }
const RoomEventPtr& operator->() const { return evt; }
index_t index() const { return idx; }