Browse Source

Add -> operator to CoTaskMemPtr

This adds the ability to get members via the -> operator.
jp9000 11 years ago
parent
commit
45eae599ce
1 changed files with 1 additions and 0 deletions
  1. 1 0
      libobs/util/windows/CoTaskMemPtr.hpp

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

@@ -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)
 	{