diff options
| author | Alexander Karatarakis <alkarata@microsoft.com> | 2017-08-29 19:21:01 -0700 |
|---|---|---|
| committer | Alexander Karatarakis <alkarata@microsoft.com> | 2017-08-29 19:32:00 -0700 |
| commit | 6b1fc769a64eb18ec25e289347ce2043968f706f (patch) | |
| tree | ee6e5f1ee1d4f294ed2d2b88e563c6327de8658d /toolsrc/src | |
| parent | 3063bf5be34f9a285e1a84fb9c70195933122d72 (diff) | |
| download | vcpkg-6b1fc769a64eb18ec25e289347ce2043968f706f.tar.gz vcpkg-6b1fc769a64eb18ec25e289347ce2043968f706f.zip | |
Add missing const
Diffstat (limited to 'toolsrc/src')
| -rw-r--r-- | toolsrc/src/VcpkgCmdArguments.cpp | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/toolsrc/src/VcpkgCmdArguments.cpp b/toolsrc/src/VcpkgCmdArguments.cpp index e7a9b8057..cb261930e 100644 --- a/toolsrc/src/VcpkgCmdArguments.cpp +++ b/toolsrc/src/VcpkgCmdArguments.cpp @@ -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()) |
