mirror of
https://github.com/yuzu-emu/yuzu.git
synced 2024-07-04 23:31:19 +01:00
core: Delete System copy/move constructors and assignment operators
Prevents potentially making copies or doing silly things by accident with the System instance, particularly given our current core is designed (unfortunately) around one instantiable instance. This will prevent the accidental case of: auto instance = System::Instance(); being compiled without warning when it's supposed to be: auto& instance = System::Instance();
This commit is contained in:
parent
c594ec3417
commit
a0ce6de913
1 changed files with 6 additions and 0 deletions
|
@ -40,6 +40,12 @@ namespace Core {
|
||||||
|
|
||||||
class System {
|
class System {
|
||||||
public:
|
public:
|
||||||
|
System(const System&) = delete;
|
||||||
|
System& operator=(const System&) = delete;
|
||||||
|
|
||||||
|
System(System&&) = delete;
|
||||||
|
System& operator=(System&&) = delete;
|
||||||
|
|
||||||
~System();
|
~System();
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
|
Loading…
Reference in a new issue