diff options
author | Kitsune Ral <Kitsune-Ral@users.sf.net> | 2018-07-01 19:44:36 +0900 |
---|---|---|
committer | Kitsune Ral <Kitsune-Ral@users.sf.net> | 2018-07-01 19:44:36 +0900 |
commit | 28d4677f4bcb863478d3bf9f813c0ba0bf300fe8 (patch) | |
tree | e3f39c7ceb2ff3d19b90816277ffc7a10323062b /lib | |
parent | 46c9d422bc50c3eb4a5012962666e3bf3a0916a1 (diff) | |
download | libquotient-28d4677f4bcb863478d3bf9f813c0ba0bf300fe8.tar.gz libquotient-28d4677f4bcb863478d3bf9f813c0ba0bf300fe8.zip |
weakPtr -> weakPtrCast
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; } |