libobs: FIx missing noexcept warnings
warning C26439: This kind of function may not throw. Declare it 'noexcept' (f.6).
This commit is contained in:
parent
f5b65ec5d3
commit
920a160600
@ -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();
|
||||
|
Loading…
x
Reference in New Issue
Block a user