Browse Source

libobs/util: Add Get() function to CoTaskMemPtr

jp9000 9 years ago
parent
commit
39a91d749c
1 changed files with 2 additions and 0 deletions
  1. 2 0
      libobs/util/windows/CoTaskMemPtr.hpp

+ 2 - 0
libobs/util/windows/CoTaskMemPtr.hpp

@@ -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();