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
release-v0.5.0
moneromooo-monero 6 years ago committed by wowario
parent b494943a10
commit e2095e00ba
No known key found for this signature in database
GPG Key ID: 24DCBE762DE9C111

@ -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…
Cancel
Save