mirror of
https://git.wownero.com/wownero/wownero.git
synced 2025-01-09 10:18:52 +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
b494943a10
commit
e2095e00ba
@ -50,8 +50,8 @@ namespace Language
|
|||||||
class Singleton
|
class Singleton
|
||||||
{
|
{
|
||||||
Singleton() {}
|
Singleton() {}
|
||||||
Singleton(Singleton &s) {}
|
Singleton(Singleton &s) = delete;
|
||||||
Singleton& operator=(const Singleton&) {}
|
Singleton& operator=(const Singleton&) = delete;
|
||||||
public:
|
public:
|
||||||
static T* instance()
|
static T* instance()
|
||||||
{
|
{
|
||||||
|
Loading…
Reference in New Issue
Block a user