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 /autoload.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 'autoload.cpp')
-rw-r--r-- | autoload.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/autoload.cpp b/autoload.cpp index de857632..dd3dafbf 100644 --- a/autoload.cpp +++ b/autoload.cpp @@ -20,11 +20,11 @@ static const int kAutoloadStalenessInterval = 15; file_access_attempt_t access_file(const wcstring &path, int mode) { file_access_attempt_t result = {0}; struct stat statbuf; - if (wstat(path.c_str(), &statbuf)) { + if (wstat(path, &statbuf)) { result.error = errno; } else { result.mod_time = statbuf.st_mtime; - if (waccess(path.c_str(), mode)) { + if (waccess(path, mode)) { result.error = errno; } else { result.accessible = true; |