Perform member initialization in initialization lists where possible

This commit is contained in:
practicalswift
2017-06-04 01:09:48 +02:00
parent f259263a7b
commit 656dbd871a
4 changed files with 4 additions and 14 deletions

View File

@@ -151,11 +151,7 @@ CInv::CInv()
hash.SetNull();
}
CInv::CInv(int typeIn, const uint256& hashIn)
{
type = typeIn;
hash = hashIn;
}
CInv::CInv(int typeIn, const uint256& hashIn) : type(typeIn), hash(hashIn) {}
bool operator<(const CInv& a, const CInv& b)
{