mirror of
https://github.com/fish-shell/fish-shell.git
synced 2026-05-31 03:51:14 -03:00
Removing some unnecessary calls to c_str(), and added str2wcstring(std::string) in common.cpp.
This commit is contained in:
@@ -239,6 +239,14 @@ wcstring str2wcstring( const char *in )
|
||||
return result;
|
||||
}
|
||||
|
||||
wcstring str2wcstring( const std::string &in )
|
||||
{
|
||||
wchar_t *tmp = str2wcs(in.c_str());
|
||||
wcstring result = tmp;
|
||||
free(tmp);
|
||||
return result;
|
||||
}
|
||||
|
||||
wchar_t *str2wcs_internal( const char *in, wchar_t *out )
|
||||
{
|
||||
size_t res=0;
|
||||
|
||||
Reference in New Issue
Block a user