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:
Siteshwar Vashisht
2012-02-18 22:41:22 +05:30
parent c0ed169fdc
commit c9f4e91df8
9 changed files with 51 additions and 51 deletions

View File

@@ -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 ) )
{