From 656dbd871ae5f460c6ae4506376b059ed41fb6bc Mon Sep 17 00:00:00 2001 From: practicalswift Date: Sun, 4 Jun 2017 01:09:48 +0200 Subject: Perform member initialization in initialization lists where possible --- src/protocol.cpp | 6 +----- 1 file changed, 1 insertion(+), 5 deletions(-) (limited to 'src/protocol.cpp') diff --git a/src/protocol.cpp b/src/protocol.cpp index 28d1d0eeb4..6cd246ed53 100644 --- a/src/protocol.cpp +++ b/src/protocol.cpp @@ -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) { -- cgit v1.2.3