diff options
author | moneromooo-monero <moneromooo-monero@users.noreply.github.com> | 2018-12-07 16:34:56 +0000 |
---|---|---|
committer | moneromooo-monero <moneromooo-monero@users.noreply.github.com> | 2018-12-07 16:56:59 +0000 |
commit | 25e5a8539c7f78e4b63bfb155bd3c6508bfbcca3 (patch) | |
tree | 51f28c2a87813d17afcf99984dca0b964ff6a201 /src/mnemonics | |
parent | Merge pull request #4879 (diff) | |
download | monero-25e5a8539c7f78e4b63bfb155bd3c6508bfbcca3.tar.xz |
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
Diffstat (limited to 'src/mnemonics')
-rw-r--r-- | src/mnemonics/singleton.h | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/mnemonics/singleton.h b/src/mnemonics/singleton.h index a15c2b9ae..d317a2d8d 100644 --- a/src/mnemonics/singleton.h +++ b/src/mnemonics/singleton.h @@ -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()
{
|