diff options
| author | Robert Schumacher <roschuma@microsoft.com> | 2017-03-31 16:29:04 -0700 |
|---|---|---|
| committer | Alexander Karatarakis <alkarata@microsoft.com> | 2017-03-31 16:29:04 -0700 |
| commit | 7d4832c6bf1cb42097f4c0e2c7dc991d7984155a (patch) | |
| tree | aaa419ed3a83fbe5008b3cb543ea548154c6568b /toolsrc/src/vcpkg_System.cpp | |
| parent | c5950aa651136cf55c38a6e1be4090b1f33a5d94 (diff) | |
| download | vcpkg-7d4832c6bf1cb42097f4c0e2c7dc991d7984155a.tar.gz vcpkg-7d4832c6bf1cb42097f4c0e2c7dc991d7984155a.zip | |
Rename optional::get_or_exit() to optional::value_or_exit()
Diffstat (limited to 'toolsrc/src/vcpkg_System.cpp')
| -rw-r--r-- | toolsrc/src/vcpkg_System.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/toolsrc/src/vcpkg_System.cpp b/toolsrc/src/vcpkg_System.cpp index 2e948284e..d125be078 100644 --- a/toolsrc/src/vcpkg_System.cpp +++ b/toolsrc/src/vcpkg_System.cpp @@ -15,7 +15,7 @@ namespace vcpkg::System int cmd_execute_clean(const cwstring_view cmd_line) { - static const std::wstring system_root = get_environmental_variable(L"SystemRoot").get_or_exit(VCPKG_LINE_INFO); + static const std::wstring system_root = get_environmental_variable(L"SystemRoot").value_or_exit(VCPKG_LINE_INFO); static const std::wstring system_32 = system_root + LR"(\system32)"; static const std::wstring new_PATH = Strings::wformat(LR"(Path=%s;%s;%s\WindowsPowerShell\v1.0\)", system_32, system_root, system_32); |
