Fix C4456 msvc warning

declaration of 'it' hides previous local declaration
post_malone
elsid 3 years ago
parent 8544aa481c
commit 5891d58f63
No known key found for this signature in database
GPG Key ID: 4DE04C198CBA7625

@ -128,11 +128,11 @@ void ConfigurationManager::readConfiguration(bpo::variables_map& variables,
auto composingVariables = separateComposingVariables(variables, description);
for (auto& [k, v] : *it)
{
auto it = variables.find(k);
if (it == variables.end())
auto variable = variables.find(k);
if (variable == variables.end())
variables.insert({k, v});
else if (it->second.defaulted())
it->second = v;
else if (variable->second.defaulted())
variable->second = v;
}
mergeComposingVariables(variables, composingVariables, description);
}

Loading…
Cancel
Save