diff options
| author | Robert Schumacher <roschuma@microsoft.com> | 2017-03-31 16:23:48 -0700 |
|---|---|---|
| committer | Alexander Karatarakis <alkarata@microsoft.com> | 2017-03-31 16:23:48 -0700 |
| commit | c5950aa651136cf55c38a6e1be4090b1f33a5d94 (patch) | |
| tree | 5b98507e92275146b98e9ee11d325229a3027277 /toolsrc/src/BinaryParagraph.cpp | |
| parent | 14297a5bd916bbe41852625dd57637c92fb79c06 (diff) | |
| download | vcpkg-c5950aa651136cf55c38a6e1be4090b1f33a5d94.tar.gz vcpkg-c5950aa651136cf55c38a6e1be4090b1f33a5d94.zip | |
Rename expected::get_or_exit() to expected::value_or_exit()
Diffstat (limited to 'toolsrc/src/BinaryParagraph.cpp')
| -rw-r--r-- | toolsrc/src/BinaryParagraph.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/toolsrc/src/BinaryParagraph.cpp b/toolsrc/src/BinaryParagraph.cpp index 2ab77f198..674d5d8eb 100644 --- a/toolsrc/src/BinaryParagraph.cpp +++ b/toolsrc/src/BinaryParagraph.cpp @@ -31,7 +31,7 @@ namespace vcpkg const std::string architecture = details::remove_required_field(&fields, BinaryParagraphRequiredField::ARCHITECTURE); const triplet target_triplet = triplet::from_canonical_name(architecture); - this->spec = package_spec::from_name_and_triplet(name, target_triplet).get_or_exit(VCPKG_LINE_INFO); + this->spec = package_spec::from_name_and_triplet(name, target_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); @@ -46,7 +46,7 @@ namespace vcpkg BinaryParagraph::BinaryParagraph(const SourceParagraph& spgh, const triplet& target_triplet) { - this->spec = package_spec::from_name_and_triplet(spgh.name, target_triplet).get_or_exit(VCPKG_LINE_INFO); + this->spec = package_spec::from_name_and_triplet(spgh.name, target_triplet).value_or_exit(VCPKG_LINE_INFO); this->version = spgh.version; this->description = spgh.description; this->maintainer = spgh.maintainer; |
