diff options
author | Siteshwar Vashisht <siteshwar@gmail.com> | 2012-02-18 22:41:22 +0530 |
---|---|---|
committer | Siteshwar Vashisht <siteshwar@gmail.com> | 2012-02-18 22:41:22 +0530 |
commit | c9f4e91df88112ea4ff5f5d9a993c3655672ce93 (patch) | |
tree | 2614e98acaea7c8e912208850e9f814aa92cb49a /common.cpp | |
parent | c0ed169fdcd153cc54e4aa392775aa4233786ed1 (diff) |
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.
Diffstat (limited to 'common.cpp')
-rw-r--r-- | common.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
@@ -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 ) ) { |