aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorWladimir J. van der Laan <laanwj@gmail.com>2017-03-06 18:33:11 +0100
committerWladimir J. van der Laan <laanwj@gmail.com>2017-03-06 18:33:24 +0100
commit72fb5158b1c8bd85c2bccc87ba814170a0095d34 (patch)
treefdece8f4affe2e198419474ee6c854bc83de0fdd /src
parentd5ce14e2233832e005c0ed749b68e546d9b94bf7 (diff)
parent188f89c3bb1f93203f6e3f70e4da5d0ee0b36446 (diff)
Merge #9906: Disallow copy constructor CReserveKeys
188f89c Disallow copy of CReserveKeys (Gregory Sanders) Tree-SHA512: e55ce10bf7f2dc91de9797e60ab7767fb51f25255995d62ddf358c52b7aaa23c26fbfb522e1610ff950b86804ddbc38dc0d7708bfab2c4d33ad99a275d8c77db
Diffstat (limited to 'src')
-rw-r--r--src/wallet/wallet.h4
1 files changed, 4 insertions, 0 deletions
diff --git a/src/wallet/wallet.h b/src/wallet/wallet.h
index 9451bf8861..65ad3e0095 100644
--- a/src/wallet/wallet.h
+++ b/src/wallet/wallet.h
@@ -1036,6 +1036,10 @@ public:
pwallet = pwalletIn;
}
+ CReserveKey() = default;
+ CReserveKey(const CReserveKey&) = delete;
+ CReserveKey& operator=(const CReserveKey&) = delete;
+
~CReserveKey()
{
ReturnKey();