libobs: FIx missing noexcept warnings

warning C26439: This kind of function may not throw. Declare it
'noexcept' (f.6).
This commit is contained in:
jpark37 2021-09-05 01:12:52 -07:00 committed by Jim
parent f5b65ec5d3
commit 920a160600

View File

@ -57,7 +57,7 @@ public:
if (ptr)
ptr->AddRef();
}
inline ComPtr(ComPtr<T> &&c) : ptr(c.ptr) { c.ptr = nullptr; }
inline ComPtr(ComPtr<T> &&c) noexcept : ptr(c.ptr) { c.ptr = nullptr; }
inline ~ComPtr() { Kill(); }
inline void Clear()
@ -80,7 +80,7 @@ public:
return *this;
}
inline ComPtr<T> &operator=(ComPtr<T> &&c)
inline ComPtr<T> &operator=(ComPtr<T> &&c) noexcept
{
if (&ptr != &c.ptr) {
Kill();