aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--lib/events/event.h2
-rw-r--r--lib/room.h2
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));
}
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; }