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/wildcard.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/wildcard.h')
-rw-r--r-- | src/wildcard.h | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/wildcard.h b/src/wildcard.h index 8c542221..7e0b0818 100644 --- a/src/wildcard.h +++ b/src/wildcard.h @@ -68,7 +68,7 @@ enum \return 1 if matches where found, 0 otherwise. Return -1 on abort (I.e. ^C was pressed). */ -int wildcard_expand_string(const wcstring &wc, const wcstring &base_dir, expand_flags_t flags, std::vector<completion_t> &out); +int wildcard_expand_string(const wcstring &wc, const wcstring &base_dir, expand_flags_t flags, std::vector<completion_t> *out); /** Test whether the given wildcard matches the string. Does not perform any I/O. @@ -90,7 +90,7 @@ bool wildcard_complete(const wcstring &str, const wchar_t *wc, const wchar_t *desc, wcstring(*desc_func)(const wcstring &), - std::vector<completion_t> &out, + std::vector<completion_t> *out, expand_flags_t expand_flags, complete_flags_t flags); |