diff --git a/src/primitives/block.h b/src/primitives/block.h --- a/src/primitives/block.h +++ b/src/primitives/block.h @@ -111,7 +111,7 @@ CBlockLocator() {} - CBlockLocator(const std::vector &vHaveIn) { vHave = vHaveIn; } + CBlockLocator(const std::vector &vHaveIn) : vHave(vHaveIn) {} ADD_SERIALIZE_METHODS; diff --git a/src/rpc/jsonrpcrequest.h b/src/rpc/jsonrpcrequest.h --- a/src/rpc/jsonrpcrequest.h +++ b/src/rpc/jsonrpcrequest.h @@ -18,11 +18,7 @@ std::string URI; std::string authUser; - JSONRPCRequest() { - id = NullUniValue; - params = NullUniValue; - fHelp = false; - } + JSONRPCRequest() : id(NullUniValue), params(NullUniValue), fHelp(false) {} void parse(const UniValue &valRequest); }; diff --git a/src/wallet/wallet.h b/src/wallet/wallet.h --- a/src/wallet/wallet.h +++ b/src/wallet/wallet.h @@ -145,7 +145,7 @@ std::string name; std::string purpose; - CAddressBookData() { purpose = "unknown"; } + CAddressBookData() : purpose("unknown") {} typedef std::map StringMap; StringMap destdata;