mirror of
https://github.com/obsproject/obs-studio.git
synced 2026-09-24 23:31:36 +08:00
libobs: Handle noexcept warnings
VC++ wants noexcept for move assignment operators, and move contructors.
This commit is contained in:
+2
-2
@@ -236,7 +236,7 @@ public:
|
||||
}
|
||||
|
||||
OBSSignal(const OBSSignal &) = delete;
|
||||
OBSSignal(OBSSignal &&other)
|
||||
OBSSignal(OBSSignal &&other) noexcept
|
||||
: handler(other.handler),
|
||||
signal(other.signal),
|
||||
callback(other.callback),
|
||||
@@ -249,7 +249,7 @@ public:
|
||||
}
|
||||
|
||||
OBSSignal &operator=(const OBSSignal &) = delete;
|
||||
OBSSignal &operator=(OBSSignal &&other)
|
||||
OBSSignal &operator=(OBSSignal &&other) noexcept
|
||||
{
|
||||
Disconnect();
|
||||
|
||||
|
||||
Reference in New Issue
Block a user