mirror of
https://github.com/dashpay/dash.git
synced 2024-12-26 12:32:48 +01:00
Merge #10523: Perform member initialization in initialization lists where possible
656dbd871
Perform member initialization in initialization lists where possible (practicalswift)
Tree-SHA512: 048380f4da23ab1eaaf471801a01dbd76f2235afb686c1489b30a6bac109195134afc83414b8378d3482a9042d537ec62d30136dadb9347cf06b07fb5c693208
This commit is contained in:
parent
648848b797
commit
5edec30db0
@ -130,10 +130,7 @@ struct CBlockLocator
|
|||||||
|
|
||||||
CBlockLocator() {}
|
CBlockLocator() {}
|
||||||
|
|
||||||
CBlockLocator(const std::vector<uint256>& vHaveIn)
|
CBlockLocator(const std::vector<uint256>& vHaveIn) : vHave(vHaveIn) {}
|
||||||
{
|
|
||||||
vHave = vHaveIn;
|
|
||||||
}
|
|
||||||
|
|
||||||
ADD_SERIALIZE_METHODS;
|
ADD_SERIALIZE_METHODS;
|
||||||
|
|
||||||
|
@ -257,11 +257,7 @@ CInv::CInv()
|
|||||||
hash.SetNull();
|
hash.SetNull();
|
||||||
}
|
}
|
||||||
|
|
||||||
CInv::CInv(int typeIn, const uint256& hashIn)
|
CInv::CInv(int typeIn, const uint256& hashIn) : type(typeIn), hash(hashIn) {}
|
||||||
{
|
|
||||||
type = typeIn;
|
|
||||||
hash = hashIn;
|
|
||||||
}
|
|
||||||
|
|
||||||
CInv::CInv(const std::string& strType, const uint256& hashIn)
|
CInv::CInv(const std::string& strType, const uint256& hashIn)
|
||||||
{
|
{
|
||||||
|
@ -48,7 +48,7 @@ public:
|
|||||||
std::string URI;
|
std::string URI;
|
||||||
std::string authUser;
|
std::string authUser;
|
||||||
|
|
||||||
JSONRPCRequest() { id = NullUniValue; params = NullUniValue; fHelp = false; }
|
JSONRPCRequest() : id(NullUniValue), params(NullUniValue), fHelp(false) {}
|
||||||
void parse(const UniValue& valRequest);
|
void parse(const UniValue& valRequest);
|
||||||
};
|
};
|
||||||
|
|
||||||
|
@ -159,10 +159,7 @@ public:
|
|||||||
std::string name;
|
std::string name;
|
||||||
std::string purpose;
|
std::string purpose;
|
||||||
|
|
||||||
CAddressBookData()
|
CAddressBookData() : purpose("unknown") {}
|
||||||
{
|
|
||||||
purpose = "unknown";
|
|
||||||
}
|
|
||||||
|
|
||||||
typedef std::map<std::string, std::string> StringMap;
|
typedef std::map<std::string, std::string> StringMap;
|
||||||
StringMap destdata;
|
StringMap destdata;
|
||||||
|
Loading…
Reference in New Issue
Block a user