aboutsummaryrefslogtreecommitdiff
path: root/src/wallet/rpcdump.cpp
diff options
context:
space:
mode:
authorWladimir J. van der Laan <laanwj@gmail.com>2016-11-07 13:43:15 +0100
committerWladimir J. van der Laan <laanwj@gmail.com>2016-11-07 13:44:00 +0100
commit0b2322b144a02f933d8806cf7b8a1e4676471711 (patch)
tree11b09deda7f5f7a047e1370b1027243c31f202d2 /src/wallet/rpcdump.cpp
parent8c6218a28ae8941fc07cc1324ade9588e1ffd4d9 (diff)
parentff6639b0f5484b392546752477d3de8c9e66dae4 (diff)
downloadbitcoin-0b2322b144a02f933d8806cf7b8a1e4676471711.tar.xz
Merge #8981: Wshadow: Do not shadow argument with a local variable
ff6639b Do not shadow local variable (Pavel Janík)
Diffstat (limited to 'src/wallet/rpcdump.cpp')
-rw-r--r--src/wallet/rpcdump.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/wallet/rpcdump.cpp b/src/wallet/rpcdump.cpp
index b638810e9d..c5feb47899 100644
--- a/src/wallet/rpcdump.cpp
+++ b/src/wallet/rpcdump.cpp
@@ -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");