Skip to content

Commit

Permalink
Merge bitcoin#9906: Disallow copy constructor CReserveKeys
Browse files Browse the repository at this point in the history
188f89c Disallow copy of CReserveKeys (Gregory Sanders)

Tree-SHA512: e55ce10bf7f2dc91de9797e60ab7767fb51f25255995d62ddf358c52b7aaa23c26fbfb522e1610ff950b86804ddbc38dc0d7708bfab2c4d33ad99a275d8c77db
  • Loading branch information
laanwj committed Mar 6, 2017
2 parents d5ce14e + 188f89c commit 72fb515
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions src/wallet/wallet.h
Original file line number Diff line number Diff line change
Expand Up @@ -1036,6 +1036,10 @@ class CReserveKey : public CReserveScript
pwallet = pwalletIn;
}

CReserveKey() = default;
CReserveKey(const CReserveKey&) = delete;
CReserveKey& operator=(const CReserveKey&) = delete;

~CReserveKey()
{
ReturnKey();
Expand Down

0 comments on commit 72fb515

Please sign in to comment.