File tree Expand file tree Collapse file tree 4 files changed +4
-14
lines changed Expand file tree Collapse file tree 4 files changed +4
-14
lines changed Original file line number Diff line number Diff line change @@ -129,10 +129,7 @@ struct CBlockLocator
129
129
130
130
CBlockLocator () {}
131
131
132
- CBlockLocator (const std::vector<uint256>& vHaveIn)
133
- {
134
- vHave = vHaveIn;
135
- }
132
+ CBlockLocator (const std::vector<uint256>& vHaveIn) : vHave(vHaveIn) {}
136
133
137
134
ADD_SERIALIZE_METHODS;
138
135
Original file line number Diff line number Diff line change @@ -151,11 +151,7 @@ CInv::CInv()
151
151
hash.SetNull ();
152
152
}
153
153
154
- CInv::CInv (int typeIn, const uint256& hashIn)
155
- {
156
- type = typeIn;
157
- hash = hashIn;
158
- }
154
+ CInv::CInv (int typeIn, const uint256& hashIn) : type(typeIn), hash(hashIn) {}
159
155
160
156
bool operator <(const CInv& a, const CInv& b)
161
157
{
Original file line number Diff line number Diff line change @@ -50,7 +50,7 @@ class JSONRPCRequest
50
50
std::string URI;
51
51
std::string authUser;
52
52
53
- JSONRPCRequest () { id = NullUniValue; params = NullUniValue; fHelp = false ; }
53
+ JSONRPCRequest () : id( NullUniValue), params( NullUniValue), fHelp ( false ) { }
54
54
void parse (const UniValue& valRequest);
55
55
};
56
56
Original file line number Diff line number Diff line change @@ -136,10 +136,7 @@ class CAddressBookData
136
136
std::string name;
137
137
std::string purpose;
138
138
139
- CAddressBookData ()
140
- {
141
- purpose = " unknown" ;
142
- }
139
+ CAddressBookData () : purpose(" unknown" ) {}
143
140
144
141
typedef std::map<std::string, std::string> StringMap;
145
142
StringMap destdata;
You can’t perform that action at this time.
0 commit comments