diff options
author | 2012-02-18 23:28:54 +0530 | |
---|---|---|
committer | 2012-02-18 23:28:54 +0530 | |
commit | 7b3d670e230bb035ec74c73b6ac75b067be1f5e5 (patch) | |
tree | 14565e16218cdd365daec0b76fbbcc21651e5902 /wildcard.cpp | |
parent | c9f4e91df88112ea4ff5f5d9a993c3655672ce93 (diff) |
Removing some unnecessary calls to c_str(), and added str2wcstring(std::string) in common.cpp.
Diffstat (limited to 'wildcard.cpp')
-rw-r--r-- | wildcard.cpp | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/wildcard.cpp b/wildcard.cpp index 49b61a9a..8b10f318 100644 --- a/wildcard.cpp +++ b/wildcard.cpp @@ -338,10 +338,9 @@ static wcstring make_path(const wcstring &base_dir, const wcstring &name) { does not perform any caching, it directly calls the mimedb command to do a lookup. */ -static wcstring complete_get_desc_suffix_internal( const wchar_t *suff_orig ) +static wcstring complete_get_desc_suffix_internal( const wcstring &suff ) { - wcstring suff = suff_orig; wcstring cmd = wcstring(SUFFIX_CMD_STR) + suff; wcstring_list_t lst; |