[StatusParagraph] Minor refactor

This commit is contained in:
Alexander Karatarakis 2016-11-03 18:55:32 -07:00
parent 11c9a523f7
commit d5d997bd7d

View File

@ -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;