aboutsummaryrefslogtreecommitdiffhomepage
path: root/wildcard.cpp
diff options
context:
space:
mode:
authorGravatar Siteshwar Vashisht <siteshwar@gmail.com>2012-02-18 22:41:22 +0530
committerGravatar Siteshwar Vashisht <siteshwar@gmail.com>2012-02-18 22:41:22 +0530
commitc9f4e91df88112ea4ff5f5d9a993c3655672ce93 (patch)
tree2614e98acaea7c8e912208850e9f814aa92cb49a /wildcard.cpp
parentc0ed169fdcd153cc54e4aa392775aa4233786ed1 (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 'wildcard.cpp')
-rw-r--r--wildcard.cpp6
1 files changed, 3 insertions, 3 deletions
diff --git a/wildcard.cpp b/wildcard.cpp
index 01bfbc4b..49b61a9a 100644
--- a/wildcard.cpp
+++ b/wildcard.cpp
@@ -593,7 +593,7 @@ static void wildcard_completion_allocate( std::vector<completion_t> &list,
non-symlinks by first doing an lstat, and if the file is not a
link we copy the results over to the regular stat buffer.
*/
- if( ( lstat_res = lwstat( fullname.c_str(), &lbuf ) ) )
+ if( ( lstat_res = lwstat( fullname, &lbuf ) ) )
{
sz=-1;
stat_res = lstat_res;
@@ -603,7 +603,7 @@ static void wildcard_completion_allocate( std::vector<completion_t> &list,
if( S_ISLNK(lbuf.st_mode))
{
- if( ( stat_res = wstat( fullname.c_str(), &buf ) ) )
+ if( ( stat_res = wstat( fullname, &buf ) ) )
{
sz=-1;
}
@@ -863,7 +863,7 @@ static int wildcard_expand_internal( const wchar_t *wc,
will be added in the next pass.
*/
struct stat buf;
- if( !wstat( long_name.c_str(), &buf ) )
+ if( !wstat( long_name, &buf ) )
{
skip = S_ISDIR(buf.st_mode);
}