mirror of
https://github.com/microsoft/vcpkg.git
synced 2025-01-18 09:43:02 +08:00
[vcpkg_Input] Add missing const
This commit is contained in:
parent
c15c80e802
commit
3a43e19020
@ -13,7 +13,7 @@ namespace vcpkg::Input
|
||||
{
|
||||
const std::string as_lowercase = Strings::ascii_to_lowercase(package_spec_as_string);
|
||||
auto expected_spec = FullPackageSpec::from_string(as_lowercase, default_triplet);
|
||||
if (auto spec = expected_spec.get())
|
||||
if (const auto spec = expected_spec.get())
|
||||
{
|
||||
return PackageSpec{spec->package_spec};
|
||||
}
|
||||
@ -41,7 +41,7 @@ namespace vcpkg::Input
|
||||
{
|
||||
const std::string as_lowercase = Strings::ascii_to_lowercase(full_package_spec_as_string);
|
||||
auto expected_spec = FullPackageSpec::from_string(as_lowercase, default_triplet);
|
||||
if (auto spec = expected_spec.get())
|
||||
if (const auto spec = expected_spec.get())
|
||||
{
|
||||
return *spec;
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user