diff options
author | ridiculousfish <corydoras@ridiculousfish.com> | 2015-07-27 18:45:47 -0700 |
---|---|---|
committer | ridiculousfish <corydoras@ridiculousfish.com> | 2015-07-27 18:45:47 -0700 |
commit | 6e3231a9d705ee043cf827b22c807b0b96ea8893 (patch) | |
tree | 04cf44073d24084bf2e583ef808fe83caa6f0cf3 /src/expand.h | |
parent | 85dad6913e77d81730f3aea478695429f441ebd5 (diff) |
Stop passing mutable references to completions around
Replace uses of vector<completion_t>& with vector<completion_t>*
This makes it clear at the call site that the object may be mutated.
Diffstat (limited to 'src/expand.h')
-rw-r--r-- | src/expand.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/expand.h b/src/expand.h index 1f42982b..a4c587cc 100644 --- a/src/expand.h +++ b/src/expand.h @@ -152,7 +152,7 @@ class parser_t; \param errors Resulting errors, or NULL to ignore \return One of EXPAND_OK, EXPAND_ERROR, EXPAND_WILDCARD_MATCH and EXPAND_WILDCARD_NO_MATCH. EXPAND_WILDCARD_NO_MATCH and EXPAND_WILDCARD_MATCH are normal exit conditions used only on strings containing wildcards to tell if the wildcard produced any matches. */ -__warn_unused int expand_string(const wcstring &input, std::vector<completion_t> &output, expand_flags_t flags, parse_error_list_t *errors); +__warn_unused int expand_string(const wcstring &input, std::vector<completion_t> *output, expand_flags_t flags, parse_error_list_t *errors); /** |