Skip to content

Commit 72fb515

Browse files
committed
Merge #9906: Disallow copy constructor CReserveKeys
188f89c Disallow copy of CReserveKeys (Gregory Sanders) Tree-SHA512: e55ce10bf7f2dc91de9797e60ab7767fb51f25255995d62ddf358c52b7aaa23c26fbfb522e1610ff950b86804ddbc38dc0d7708bfab2c4d33ad99a275d8c77db
2 parents d5ce14e + 188f89c commit 72fb515

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

src/wallet/wallet.h

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1036,6 +1036,10 @@ class CReserveKey : public CReserveScript
10361036
pwallet = pwalletIn;
10371037
}
10381038

1039+
CReserveKey() = default;
1040+
CReserveKey(const CReserveKey&) = delete;
1041+
CReserveKey& operator=(const CReserveKey&) = delete;
1042+
10391043
~CReserveKey()
10401044
{
10411045
ReturnKey();

0 commit comments

Comments
 (0)