aboutsummaryrefslogtreecommitdiff
path: root/toolsrc/src/commands_edit.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'toolsrc/src/commands_edit.cpp')
-rw-r--r--toolsrc/src/commands_edit.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/toolsrc/src/commands_edit.cpp b/toolsrc/src/commands_edit.cpp
index 361e69941..e118f41b6 100644
--- a/toolsrc/src/commands_edit.cpp
+++ b/toolsrc/src/commands_edit.cpp
@@ -20,7 +20,7 @@ namespace vcpkg::Commands::Edit
if (env_EDITOR.empty())
{
- const optional<std::wstring> env_EDITOR_optional = System::get_environmental_variable(L"EDITOR");
+ const Optional<std::wstring> env_EDITOR_optional = System::get_environmental_variable(L"EDITOR");
if (auto e = env_EDITOR_optional.get())
{
env_EDITOR = *e;
@@ -46,7 +46,7 @@ namespace vcpkg::Commands::Edit
};
for (auto&& keypath : regkeys)
{
- const optional<std::wstring> code_installpath = System::get_registry_string(HKEY_LOCAL_MACHINE, keypath, L"InstallLocation");
+ const Optional<std::wstring> code_installpath = System::get_registry_string(HKEY_LOCAL_MACHINE, keypath, L"InstallLocation");
if (auto c = code_installpath.get())
{
auto p = fs::path(*c) / "Code.exe";