mirror of
https://codeberg.org/anoncontributorxmr/monero.git
synced 2024-11-26 17:32:33 +00:00
singleton: fix missing *this return value in operator=
while there, disable both operator= and copy ctor, since they are not supposed to be around for a singleton
This commit is contained in:
parent
7e957c162a
commit
25e5a8539c
1 changed files with 2 additions and 2 deletions
|
@ -50,8 +50,8 @@ namespace Language
|
|||
class Singleton
|
||||
{
|
||||
Singleton() {}
|
||||
Singleton(Singleton &s) {}
|
||||
Singleton& operator=(const Singleton&) {}
|
||||
Singleton(Singleton &s) = delete;
|
||||
Singleton& operator=(const Singleton&) = delete;
|
||||
public:
|
||||
static T* instance()
|
||||
{
|
||||
|
|
Loading…
Reference in a new issue