diff options
author | 2015-07-27 18:45:47 -0700 | |
---|---|---|
committer | 2015-07-27 18:45:47 -0700 | |
commit | 6e3231a9d705ee043cf827b22c807b0b96ea8893 (patch) | |
tree | 04cf44073d24084bf2e583ef808fe83caa6f0cf3 /src/parser.cpp | |
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/parser.cpp')
-rw-r--r-- | src/parser.cpp | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/src/parser.cpp b/src/parser.cpp index ec8f2253..810a01c8 100644 --- a/src/parser.cpp +++ b/src/parser.cpp @@ -494,8 +494,9 @@ void parser_t::emit_profiling(const char *path) const } } -void parser_t::expand_argument_list(const wcstring &arg_list_src, std::vector<completion_t> &output_arg_list) +void parser_t::expand_argument_list(const wcstring &arg_list_src, std::vector<completion_t> *output_arg_list) { + assert(output_arg_list != NULL); expand_flags_t eflags = 0; if (! show_errors) eflags |= EXPAND_NO_DESCRIPTIONS; |