diff options
author | Kitsune Ral <Kitsune-Ral@users.sf.net> | 2018-07-08 09:05:07 +0900 |
---|---|---|
committer | Kitsune Ral <Kitsune-Ral@users.sf.net> | 2018-07-08 09:05:07 +0900 |
commit | 0621efc37355d1986800e40f367d918bf859c5cd (patch) | |
tree | b65073af2b52ce1468c0e67f983fa559f72183b5 /lib | |
parent | cab30e850847ac221b08c3a8b715d0298bb63ddf (diff) | |
download | libquotient-0621efc37355d1986800e40f367d918bf859c5cd.tar.gz libquotient-0621efc37355d1986800e40f367d918bf859c5cd.zip |
Generalize weakPtrCast<>()
Diffstat (limited to 'lib')
-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)); } |