mirror of
https://github.com/obsproject/obs-studio.git
synced 2024-07-15 07:44:10 +00:00
libobs: Add copy constructor for ComQIPtr
This commit is contained in:
parent
60844505d0
commit
f9cce334d2
|
@ -165,6 +165,12 @@ public:
|
|||
unk->QueryInterface(__uuidof(T), (void **)&this->ptr);
|
||||
}
|
||||
|
||||
template<class U> inline ComQIPtr(const ComPtr<U> &c)
|
||||
{
|
||||
this->ptr = nullptr;
|
||||
c->QueryInterface(__uuidof(T), (void **)&this->ptr);
|
||||
}
|
||||
|
||||
inline ComPtr<T> &operator=(IUnknown *unk)
|
||||
{
|
||||
ComPtr<T>::Clear();
|
||||
|
|
Loading…
Reference in a new issue