mirror of
https://github.com/microsoft/vcpkg.git
synced 2025-01-18 12:53:02 +08:00
Remove unneeded call to c_str()
This commit is contained in:
parent
42bd55e3ae
commit
970a179cfd
@ -69,7 +69,7 @@ namespace vcpkg::System
|
||||
|
||||
for (auto&& env_wstring : env_wstrings)
|
||||
{
|
||||
const optional<std::wstring> value = System::get_environmental_variable(env_wstring.c_str());
|
||||
const optional<std::wstring> value = System::get_environmental_variable(env_wstring);
|
||||
auto v = value.get();
|
||||
if (!v || v->empty())
|
||||
continue;
|
||||
|
Loading…
Reference in New Issue
Block a user