mirror of
https://github.com/bitcoin/bitcoin.git
synced 2025-11-12 15:09:59 +01:00
Declare single-argument (non-converting) constructors "explicit"
In order to avoid unintended implicit conversions.
This commit is contained in:
@@ -24,7 +24,7 @@ struct TestVector {
|
||||
std::string strHexMaster;
|
||||
std::vector<TestDerivation> vDerive;
|
||||
|
||||
TestVector(std::string strHexMasterIn) : strHexMaster(strHexMasterIn) {}
|
||||
explicit TestVector(std::string strHexMasterIn) : strHexMaster(strHexMasterIn) {}
|
||||
|
||||
TestVector& operator()(std::string pub, std::string prv, unsigned int nChild) {
|
||||
vDerive.push_back(TestDerivation());
|
||||
|
||||
Reference in New Issue
Block a user