aboutsummaryrefslogtreecommitdiffhomepage
path: root/complete.cpp
diff options
context:
space:
mode:
authorGravatar ridiculousfish <corydoras@ridiculousfish.com>2014-01-12 13:33:35 -0800
committerGravatar ridiculousfish <corydoras@ridiculousfish.com>2014-01-12 13:33:35 -0800
commit89069fdaa4fff2f8b703fef0be260eb4d4c2ed9b (patch)
tree89d1d66d214ae3f149c8e152b1fd7cd204395670 /complete.cpp
parent1130e4782de6378a7ad2cbb39cfb1626d7233fe8 (diff)
Miscellaneous minor fixes based on cppcheck static analyzer
Diffstat (limited to 'complete.cpp')
-rw-r--r--complete.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/complete.cpp b/complete.cpp
index 5676d5bb..fdc62e1e 100644
--- a/complete.cpp
+++ b/complete.cpp
@@ -1484,7 +1484,7 @@ bool completer_t::complete_param(const wcstring &scmd_orig, const wcstring &spop
{
if (o->result_mode & NO_COMMON) use_common = false;
if (o->result_mode & NO_FILES) use_files = false;
- complete_from_args(str, o->comp.c_str(), o->localized_desc(), o->flags);
+ complete_from_args(str, o->comp, o->localized_desc(), o->flags);
}
}
@@ -1697,7 +1697,7 @@ bool completer_t::complete_variable(const wcstring &str, size_t start_offset)
desc = format_string(COMPLETE_VAR_DESC_VAL, value.c_str());
}
- append_completion(this->completions, comp.c_str(), desc.c_str(), flags, match);
+ append_completion(this->completions, comp, desc, flags, match);
res = true;
}