Removing some unnecessary calls to c_str(), and added str2wcstring(std::string) in common.cpp.

This commit is contained in:
Siteshwar Vashisht
2012-02-18 23:28:54 +05:30
parent c9f4e91df8
commit 7b3d670e23
7 changed files with 18 additions and 10 deletions

View File

@@ -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],