From a742b60b4f4da8fc0d9b755b05600b75724233a9 Mon Sep 17 00:00:00 2001 From: Alexander Karatarakis Date: Mon, 3 Apr 2017 15:25:34 -0700 Subject: InstallState: change enum constants to ALL_UPPER --- toolsrc/src/StatusParagraph.cpp | 16 ++++++++-------- 1 file changed, 8 insertions(+), 8 deletions(-) (limited to 'toolsrc/src/StatusParagraph.cpp') diff --git a/toolsrc/src/StatusParagraph.cpp b/toolsrc/src/StatusParagraph.cpp index 4f4f6beee..a46262fe8 100644 --- a/toolsrc/src/StatusParagraph.cpp +++ b/toolsrc/src/StatusParagraph.cpp @@ -12,7 +12,7 @@ namespace vcpkg static const std::string STATUS = "Status"; } - StatusParagraph::StatusParagraph() : want(want_t::error), state(InstallState::error) + StatusParagraph::StatusParagraph() : want(want_t::error), state(InstallState::ERROR_STATE) { } @@ -58,12 +58,12 @@ namespace vcpkg state = [](const std::string& text) { if (text == "not-installed") - return InstallState::not_installed; + return InstallState::NOT_INSTALLED; if (text == "installed") - return InstallState::installed; + return InstallState::INSTALLED; if (text == "half-installed") - return InstallState::half_installed; - return InstallState::error; + return InstallState::HALF_INSTALLED; + return InstallState::ERROR_STATE; }(std::string(b, e)); } @@ -71,9 +71,9 @@ namespace vcpkg { switch (f) { - case InstallState::half_installed: return "half-installed"; - case InstallState::installed: return "installed"; - case InstallState::not_installed: return "not-installed"; + case InstallState::HALF_INSTALLED: return "half-installed"; + case InstallState::INSTALLED: return "installed"; + case InstallState::NOT_INSTALLED: return "not-installed"; default: return "error"; } } -- cgit v1.2.3