Browse Source

Merge #8981: Wshadow: Do not shadow argument with a local variable

ff6639b Do not shadow local variable (Pavel Janík)
0.14
Wladimir J. van der Laan 8 years ago
parent
commit
0b2322b144
No known key found for this signature in database
GPG Key ID: 74810B012346C9A6
  1. 4
      src/wallet/rpcdump.cpp

4
src/wallet/rpcdump.cpp

@ -798,8 +798,8 @@ UniValue processImport(const UniValue& data) { @@ -798,8 +798,8 @@ UniValue processImport(const UniValue& data) {
throw JSONRPCError(RPC_INVALID_ADDRESS_OR_KEY, "Pubkey must be a hex string");
}
std::vector<unsigned char> data(ParseHex(strPubKey));
CPubKey pubKey(data.begin(), data.end());
std::vector<unsigned char> vData(ParseHex(strPubKey));
CPubKey pubKey(vData.begin(), vData.end());
if (!pubKey.IsFullyValid()) {
throw JSONRPCError(RPC_INVALID_ADDRESS_OR_KEY, "Pubkey is not a valid public key");

Loading…
Cancel
Save