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:
@@ -68,7 +68,7 @@ class ConfigFile {
|
||||
|
||||
public:
|
||||
inline ConfigFile() : config(NULL) {}
|
||||
inline ConfigFile(ConfigFile &&other) : config(other.config)
|
||||
inline ConfigFile(ConfigFile &&other) noexcept : config(other.config)
|
||||
{
|
||||
other.config = nullptr;
|
||||
}
|
||||
@@ -120,7 +120,7 @@ class TextLookup {
|
||||
|
||||
public:
|
||||
inline TextLookup(lookup_t *lookup = nullptr) : lookup(lookup) {}
|
||||
inline TextLookup(TextLookup &&other) : lookup(other.lookup)
|
||||
inline TextLookup(TextLookup &&other) noexcept : lookup(other.lookup)
|
||||
{
|
||||
other.lookup = nullptr;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user