mirror of
https://github.com/Xaymar/obs-StreamFX
synced 2024-11-27 13:53:01 +00:00
obs-source: Disallow copy constructor
This commit is contained in:
parent
681a586ae9
commit
4baa2360c5
2 changed files with 4 additions and 3 deletions
|
@ -590,7 +590,7 @@ obs::deprecated_source::deprecated_source(obs_source_t* source, bool ptrack_owne
|
|||
obs_source_addref(this->_self);
|
||||
}
|
||||
}
|
||||
|
||||
/*
|
||||
obs::deprecated_source::deprecated_source(deprecated_source const& other)
|
||||
{
|
||||
this->_self = other._self;
|
||||
|
@ -687,6 +687,7 @@ obs::deprecated_source& obs::deprecated_source::operator=(deprecated_source cons
|
|||
|
||||
return *this;
|
||||
}
|
||||
*/
|
||||
|
||||
obs::deprecated_source::deprecated_source(deprecated_source&& other)
|
||||
: _self(std::move(other._self)), _track_ownership(std::move(other._track_ownership))
|
||||
|
|
|
@ -78,8 +78,8 @@ namespace obs {
|
|||
deprecated_source(obs_source_t* source, bool track_ownership = true, bool add_reference = false);
|
||||
|
||||
public /*copy*/:
|
||||
deprecated_source(deprecated_source const& other);
|
||||
deprecated_source& operator=(deprecated_source const& other);
|
||||
deprecated_source(deprecated_source const& other) = delete;
|
||||
deprecated_source& operator=(deprecated_source const& other) = delete;
|
||||
|
||||
public /*move*/:
|
||||
deprecated_source(deprecated_source&& other);
|
||||
|
|
Loading…
Reference in a new issue