From 6e3231a9d705ee043cf827b22c807b0b96ea8893 Mon Sep 17 00:00:00 2001 From: ridiculousfish Date: Mon, 27 Jul 2015 18:45:47 -0700 Subject: Stop passing mutable references to completions around Replace uses of vector& with vector* This makes it clear at the call site that the object may be mutated. --- src/builtin.h | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'src/builtin.h') 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 &list); +void builtin_get_names(std::vector *list); /** Pushes a new set of input/output to the stack. The new stdin is supplied, a new set of output strings is created. -- cgit v1.2.3