mirror of
https://github.com/fish-shell/fish-shell.git
synced 2026-05-30 03:01:15 -03:00
Modified most functions in wutil.h/.cpp to use wcstring instead of wchar_t*, removing calls to c_str() while calling these functions in other files.
This commit is contained in:
@@ -1781,7 +1781,7 @@ bool string_prefixes_string(const wcstring &proposed_prefix, const wcstring &val
|
||||
return prefix_size <= value.size() && value.compare(0, prefix_size, proposed_prefix) == 0;
|
||||
}
|
||||
|
||||
int create_directory( const wchar_t *d )
|
||||
int create_directory( const wcstring &d )
|
||||
{
|
||||
int ok = 0;
|
||||
struct stat buf;
|
||||
@@ -1805,7 +1805,7 @@ int create_directory( const wchar_t *d )
|
||||
if( errno == ENOENT )
|
||||
{
|
||||
wcstring dir = wdirname(d);
|
||||
if( !create_directory( dir.c_str() ) )
|
||||
if( !create_directory( dir ) )
|
||||
{
|
||||
if( !wmkdir( d, 0700 ) )
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user