diff options
Diffstat (limited to 'lib/events')
-rw-r--r-- | lib/events/event.h | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/events/event.h b/lib/events/event.h index cd49606f..5aa78dbb 100644 --- a/lib/events/event.h +++ b/lib/events/event.h @@ -35,8 +35,8 @@ namespace QMatrixClient return ptr.get(); } - template <typename TargetEventT, typename EventT> - inline TargetEventT* weakPtrCast(const event_ptr_tt<EventT>& ptr) + template <typename TargetEventT, typename HolderT> + inline TargetEventT* weakPtrCast(const HolderT& ptr) { return static_cast<TargetEventT*>(rawPtr(ptr)); } |