From 51ee45f0cade976dcc90802183a9cdd1ea3d8884 Mon Sep 17 00:00:00 2001 From: Gregory Sanders Date: Thu, 2 Mar 2017 17:04:39 -0800 Subject: [PATCH] Disallow copy of CReserveKeys --- src/wallet/wallet.h | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/src/wallet/wallet.h b/src/wallet/wallet.h index 560f3cf1598..abba13007c0 100644 --- a/src/wallet/wallet.h +++ b/src/wallet/wallet.h @@ -987,6 +987,10 @@ class CReserveKey : public CReserveScript pwallet = pwalletIn; } + CReserveKey() = default; + CReserveKey(const CReserveKey&) = delete; + CReserveKey& operator=(const CReserveKey&) = delete; + ~CReserveKey() { ReturnKey();