diff options
author | ridiculousfish <corydoras@ridiculousfish.com> | 2013-02-16 02:38:13 -0800 |
---|---|---|
committer | ridiculousfish <corydoras@ridiculousfish.com> | 2013-02-16 02:38:13 -0800 |
commit | 4416753df0116452891f6c389712b60b4ea219b6 (patch) | |
tree | 96474e9dba0a9b59909e6323d51e3f8136d4f512 /wildcard.cpp | |
parent | dc54ec5b2b4391791b4b7f3471b6031c492d26f1 (diff) |
More cleanup based on static analysis
Diffstat (limited to 'wildcard.cpp')
-rw-r--r-- | wildcard.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/wildcard.cpp b/wildcard.cpp index 8f48848f..f8e1bed0 100644 --- a/wildcard.cpp +++ b/wildcard.cpp @@ -338,7 +338,7 @@ static wcstring complete_get_desc_suffix_internal(const wcstring &suff) if (exec_subshell(cmd, lst, false /* do not apply exit status */) != -1) { - if (lst.size()>0) + if (! lst.empty()) { const wcstring & ln = lst.at(0); if (ln.size() > 0 && ln != L"unknown") @@ -620,7 +620,7 @@ static void wildcard_completion_allocate(std::vector<completion_t> &list, bool wants_desc = !(expand_flags & EXPAND_NO_DESCRIPTIONS); wcstring desc; if (wants_desc) - desc = file_get_desc(fullname.c_str(), lstat_res, lbuf, stat_res, buf, stat_errno); + desc = file_get_desc(fullname, lstat_res, lbuf, stat_res, buf, stat_errno); if (sz >= 0 && S_ISDIR(buf.st_mode)) { |