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 /path.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 'path.cpp')
-rw-r--r-- | path.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
@@ -81,10 +81,10 @@ bool path_get_path_string(const wcstring &cmd_str, wcstring &output, const env_v if (path_len == 0) continue; append_path_component(new_cmd, cmd_str); - if( waccess( new_cmd.c_str(), X_OK )==0 ) + if( waccess( new_cmd, X_OK )==0 ) { struct stat buff; - if( wstat( new_cmd.c_str(), &buff )==-1 ) + if( wstat( new_cmd, &buff )==-1 ) { if( errno != EACCES ) { |