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