From 0621efc37355d1986800e40f367d918bf859c5cd Mon Sep 17 00:00:00 2001 From: Kitsune Ral Date: Sun, 8 Jul 2018 09:05:07 +0900 Subject: Generalize weakPtrCast<>() --- lib/events/event.h | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'lib/events/event.h') 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 - inline TargetEventT* weakPtrCast(const event_ptr_tt& ptr) + template + inline TargetEventT* weakPtrCast(const HolderT& ptr) { return static_cast(rawPtr(ptr)); } -- cgit v1.2.3