mirror of
https://github.com/bitcoin/bitcoin.git
synced 2025-11-12 23:18:14 +01:00
Declare single-argument (non-converting) constructors "explicit"
In order to avoid unintended implicit conversions.
This commit is contained in:
@@ -1123,7 +1123,7 @@ public:
|
||||
CWallet * const pwallet;
|
||||
CScriptID result;
|
||||
|
||||
Witnessifier(CWallet *_pwallet) : pwallet(_pwallet) {}
|
||||
explicit Witnessifier(CWallet *_pwallet) : pwallet(_pwallet) {}
|
||||
|
||||
bool operator()(const CNoDestination &dest) const { return false; }
|
||||
|
||||
|
||||
Reference in New Issue
Block a user