mirror of
https://github.com/microsoft/vcpkg.git
synced 2025-01-18 12:46:19 +08:00
Add missing const
This commit is contained in:
parent
3063bf5be3
commit
6b1fc769a6
@ -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())
|
||||
|
Loading…
Reference in New Issue
Block a user