diff --git a/src/wallet/rpcwallet.cpp b/src/wallet/rpcwallet.cpp --- a/src/wallet/rpcwallet.cpp +++ b/src/wallet/rpcwallet.cpp @@ -290,7 +290,7 @@ } bool label_found = false; - for (const std::pair &item : + for (const std::pair &item : pwallet->mapAddressBook) { if (item.second.name == label) { label_found = true; @@ -4896,7 +4896,7 @@ // Find all addresses that have the given label UniValue ret(UniValue::VOBJ); - for (const std::pair &item : + for (const std::pair &item : pwallet->mapAddressBook) { if (item.second.name == label) { ret.pushKV(EncodeDestination(item.first, config), @@ -4951,7 +4951,7 @@ // Add to a set to sort by label name, then insert into Univalue array std::set label_set; - for (const std::pair &entry : + for (const std::pair &entry : pwallet->mapAddressBook) { if (purpose.empty() || entry.second.purpose == purpose) { label_set.insert(entry.second.name);