[BinaryParagraph] target_triplet -> triplet
MODIFY
include/BinaryParagraph.h
include/BinaryParagraph.h
@@ -10,7 +10,7 @@ namespace vcpkg
{
BinaryParagraph();
explicit BinaryParagraph(std::unordered_map<std::string, std::string> fields);
- BinaryParagraph(const SourceParagraph& spgh, const Triplet& target_triplet);
+ BinaryParagraph(const SourceParagraph& spgh, const Triplet& triplet);
std::string displayname() const;

MODIFY
src/BinaryParagraph.cpp
src/BinaryParagraph.cpp
@@ -29,9 +29,9 @@ namespace vcpkg
{
const std::string name = details::remove_required_field(&fields, BinaryParagraphRequiredField::PACKAGE);
const std::string architecture = details::remove_required_field(&fields, BinaryParagraphRequiredField::ARCHITECTURE);
- const Triplet target_triplet = Triplet::from_canonical_name(architecture);
+ const Triplet triplet = Triplet::from_canonical_name(architecture);
- this->spec = PackageSpec::from_name_and_triplet(name, target_triplet).value_or_exit(VCPKG_LINE_INFO);
+ this->spec = PackageSpec::from_name_and_triplet(name, triplet).value_or_exit(VCPKG_LINE_INFO);
this->version = details::remove_required_field(&fields, BinaryParagraphRequiredField::VERSION);
this->description = details::remove_optional_field(&fields, BinaryParagraphOptionalField::DESCRIPTION);
@@ -44,13 +44,13 @@ namespace vcpkg
this->depends = parse_depends(deps);
}
- BinaryParagraph::BinaryParagraph(const SourceParagraph& spgh, const Triplet& target_triplet)
+ BinaryParagraph::BinaryParagraph(const SourceParagraph& spgh, const Triplet& triplet)
{
- this->spec = PackageSpec::from_name_and_triplet(spgh.name, target_triplet).value_or_exit(VCPKG_LINE_INFO);
+ this->spec = PackageSpec::from_name_and_triplet(spgh.name, triplet).value_or_exit(VCPKG_LINE_INFO);
this->version = spgh.version;
this->description = spgh.description;
this->maintainer = spgh.maintainer;
- this->depends = filter_dependencies(spgh.depends, target_triplet);
+ this->depends = filter_dependencies(spgh.depends, triplet);
}
std::string BinaryParagraph::displayname() const

[BinaryParagraph] target_triplet -> triplet