mirror of
https://github.com/obsproject/obs-studio.git
synced 2026-09-19 09:41:32 +08:00
Add -> operator to CoTaskMemPtr
This adds the ability to get members via the -> operator.
This commit is contained in:
@@ -27,6 +27,7 @@ public:
|
||||
inline ~CoTaskMemPtr() {Clear();}
|
||||
|
||||
inline operator T*() const {return ptr;}
|
||||
inline T *operator->() const {return ptr;}
|
||||
|
||||
inline CoTaskMemPtr& operator=(T* val)
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user