Attempt to fix Windows build error.

This commit is contained in:
Matthias Koefferlein 2020-02-27 15:46:34 +01:00
parent 4cfe6ba2b9
commit d315f84cab
1 changed files with 1 additions and 1 deletions

View File

@ -44,7 +44,7 @@ std::string get_env (const std::string &name, const std::string &def_value)
std::wstring wname = tl::to_wstring (name);
wchar_t *env = _wgetenv (wname.c_str ());
if (env) {
return tl::to_string (QString ((const QChar *) env));
return tl::to_string (std::wstring (env));
} else {
return def_value;
}