libobs/util: Add Get() function to CoTaskMemPtr

master
jp9000 2016-10-23 09:08:16 -07:00
parent 405ae6bc7c
commit 39a91d749c
1 changed files with 2 additions and 0 deletions

View File

@ -29,6 +29,8 @@ public:
inline operator T*() const {return ptr;}
inline T *operator->() const {return ptr;}
inline const T *Get() const {return ptr;}
inline CoTaskMemPtr& operator=(T* val)
{
Clear();