aboutsummaryrefslogtreecommitdiff
path: root/lib/events/event.h
diff options
context:
space:
mode:
authorKitsune Ral <Kitsune-Ral@users.sf.net>2018-07-08 09:05:07 +0900
committerKitsune Ral <Kitsune-Ral@users.sf.net>2018-07-08 09:05:07 +0900
commit0621efc37355d1986800e40f367d918bf859c5cd (patch)
treeb65073af2b52ce1468c0e67f983fa559f72183b5 /lib/events/event.h
parentcab30e850847ac221b08c3a8b715d0298bb63ddf (diff)
downloadlibquotient-0621efc37355d1986800e40f367d918bf859c5cd.tar.gz
libquotient-0621efc37355d1986800e40f367d918bf859c5cd.zip
Generalize weakPtrCast<>()
Diffstat (limited to 'lib/events/event.h')
-rw-r--r--lib/events/event.h4
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));
}