mirror of
https://github.com/microsoft/vcpkg.git
synced 2025-01-18 21:13:04 +08:00
[StatusParagraph] Minor refactor
This commit is contained in:
parent
11c9a523f7
commit
d5d997bd7d
@ -5,6 +5,12 @@ using namespace vcpkg::details;
|
||||
|
||||
namespace vcpkg
|
||||
{
|
||||
//
|
||||
namespace BinaryParagraphRequiredField
|
||||
{
|
||||
static const std::string STATUS = "Status";
|
||||
}
|
||||
|
||||
StatusParagraph::StatusParagraph() : want(want_t::error), state(install_state_t::error)
|
||||
{
|
||||
}
|
||||
@ -19,7 +25,7 @@ namespace vcpkg
|
||||
StatusParagraph::StatusParagraph(const std::unordered_map<std::string, std::string>& fields)
|
||||
: package(fields)
|
||||
{
|
||||
std::string status_field = required_field(fields, "Status");
|
||||
std::string status_field = required_field(fields, BinaryParagraphRequiredField::STATUS);
|
||||
|
||||
auto b = status_field.begin();
|
||||
auto mark = b;
|
||||
|
Loading…
Reference in New Issue
Block a user