aboutsummaryrefslogtreecommitdiffhomepage
path: root/src/builtin.h
diff options
context:
space:
mode:
authorGravatar ridiculousfish <corydoras@ridiculousfish.com>2015-07-27 18:45:47 -0700
committerGravatar ridiculousfish <corydoras@ridiculousfish.com>2015-07-27 18:45:47 -0700
commit6e3231a9d705ee043cf827b22c807b0b96ea8893 (patch)
tree04cf44073d24084bf2e583ef808fe83caa6f0cf3 /src/builtin.h
parent85dad6913e77d81730f3aea478695429f441ebd5 (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/builtin.h')
-rw-r--r--src/builtin.h4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/builtin.h b/src/builtin.h
index 3472995c..c280cbd0 100644
--- a/src/builtin.h
+++ b/src/builtin.h
@@ -142,10 +142,10 @@ int builtin_exists(const wcstring &cmd);
int builtin_run(parser_t &parser, const wchar_t * const *argv, const io_chain_t &io);
/** Returns a list of all builtin names */
-wcstring_list_t builtin_get_names(void);
+wcstring_list_t builtin_get_names();
/** Insert all builtin names into list. */
-void builtin_get_names(std::vector<completion_t> &list);
+void builtin_get_names(std::vector<completion_t> *list);
/**
Pushes a new set of input/output to the stack. The new stdin is supplied, a new set of output strings is created.