aboutsummaryrefslogtreecommitdiff
path: root/lib
diff options
context:
space:
mode:
authorKitsune Ral <Kitsune-Ral@users.sf.net>2018-07-01 19:44:36 +0900
committerKitsune Ral <Kitsune-Ral@users.sf.net>2018-07-01 19:44:36 +0900
commit28d4677f4bcb863478d3bf9f813c0ba0bf300fe8 (patch)
treee3f39c7ceb2ff3d19b90816277ffc7a10323062b /lib
parent46c9d422bc50c3eb4a5012962666e3bf3a0916a1 (diff)
downloadlibquotient-28d4677f4bcb863478d3bf9f813c0ba0bf300fe8.tar.gz
libquotient-28d4677f4bcb863478d3bf9f813c0ba0bf300fe8.zip
weakPtr -> weakPtrCast
Diffstat (limited to 'lib')
-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; }