aboutsummaryrefslogtreecommitdiff
path: root/src/protocol.cpp
diff options
context:
space:
mode:
authorpracticalswift <practicalswift@users.noreply.github.com>2017-06-04 01:09:48 +0200
committerpracticalswift <practicalswift@users.noreply.github.com>2017-06-04 01:09:48 +0200
commit656dbd871ae5f460c6ae4506376b059ed41fb6bc (patch)
treee37b93c406ba17745fedb54be9593f43ae9d0127 /src/protocol.cpp
parentf259263a7b11c6ff925851985ef0082b0a190a57 (diff)
downloadbitcoin-656dbd871ae5f460c6ae4506376b059ed41fb6bc.tar.xz
Perform member initialization in initialization lists where possible
Diffstat (limited to 'src/protocol.cpp')
-rw-r--r--src/protocol.cpp6
1 files changed, 1 insertions, 5 deletions
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)
{