diff options
Diffstat (limited to 'lib')
-rw-r--r-- | lib/events/event.h | 2 | ||||
-rw-r--r-- | lib/room.h | 2 |
2 files changed, 2 insertions, 2 deletions
diff --git a/lib/events/event.h b/lib/events/event.h index 91bdc632..cbfa06ac 100644 --- a/lib/events/event.h +++ b/lib/events/event.h @@ -33,7 +33,7 @@ namespace QMatrixClient } template <typename TargetEventT, typename EventT> - inline TargetEventT* weakPtr(const event_ptr_tt<EventT>& ptr) + inline TargetEventT* weakPtrCast(const event_ptr_tt<EventT>& ptr) { return static_cast<TargetEventT*>(rawPtr(ptr)); } @@ -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; } |