aboutsummaryrefslogtreecommitdiffhomepage
path: root/complete.cpp
diff options
context:
space:
mode:
authorGravatar Siteshwar Vashisht <siteshwar@gmail.com>2012-02-18 23:28:54 +0530
committerGravatar Siteshwar Vashisht <siteshwar@gmail.com>2012-02-18 23:28:54 +0530
commit7b3d670e230bb035ec74c73b6ac75b067be1f5e5 (patch)
tree14565e16218cdd365daec0b76fbbcc21651e5902 /complete.cpp
parentc9f4e91df88112ea4ff5f5d9a993c3655672ce93 (diff)
Removing some unnecessary calls to c_str(), and added str2wcstring(std::string) in common.cpp.
Diffstat (limited to 'complete.cpp')
-rw-r--r--complete.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/complete.cpp b/complete.cpp
index 7c833ec2..bcd2c67f 100644
--- a/complete.cpp
+++ b/complete.cpp
@@ -561,7 +561,7 @@ int complete_is_valid_option( const wchar_t *str,
continue;
}
- if( wcsncmp( &opt[2], o.long_opt.c_str(), gnu_opt_len )==0)
+ if( &opt[2] == o.long_opt )
{
gnu_match_set.insert(o.long_opt);
if( (wcsncmp( &opt[2],