Fix shadowing variables

This commit is contained in:
seelabs
2019-08-13 14:26:02 -07:00
parent 014df67fed
commit b9e73b4852
55 changed files with 460 additions and 444 deletions

View File

@@ -301,8 +301,8 @@ ValidatorList::applyList (
continue;
}
auto const result = validatorManifests_.applyManifest (std::move(*m));
if (result == ManifestDisposition::invalid)
if (auto const r = validatorManifests_.applyManifest (std::move(*m));
r == ManifestDisposition::invalid)
{
JLOG (j_.warn()) <<
"List for " << strHex(pubKey) <<
@@ -526,8 +526,8 @@ ValidatorList::getJson() const
PublicKey local;
Json::Value& jLocalStaticKeys =
(res[jss::local_static_keys] = Json::arrayValue);
auto it = publisherLists_.find(local);
if (it != publisherLists_.end())
if (auto it = publisherLists_.find(local);
it != publisherLists_.end())
{
for (auto const& key : it->second.list)
jLocalStaticKeys.append(