Add missing const

This commit is contained in:
Alexander Karatarakis 2017-08-29 19:21:01 -07:00
parent 3063bf5be3
commit 6b1fc769a6

View File

@ -124,7 +124,7 @@ namespace vcpkg
continue;
}
auto eq_pos = arg.find('=');
const auto eq_pos = arg.find('=');
if (eq_pos != std::string::npos)
{
args.optional_command_arguments.emplace(arg.substr(0, eq_pos), arg.substr(eq_pos + 1));
@ -158,7 +158,7 @@ namespace vcpkg
auto options_copy = this->optional_command_arguments;
for (const std::string& option : valid_switches)
{
auto it = options_copy.find(option);
const auto it = options_copy.find(option);
if (it != options_copy.end())
{
if (it->second.has_value())
@ -177,7 +177,7 @@ namespace vcpkg
for (const std::string& option : valid_settings)
{
auto it = options_copy.find(option);
const auto it = options_copy.find(option);
if (it != options_copy.end())
{
if (!it->second.has_value())