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/expand.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/expand.h') 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 &output, expand_flags_t flags, parse_error_list_t *errors); +__warn_unused int expand_string(const wcstring &input, std::vector *output, expand_flags_t flags, parse_error_list_t *errors); /** -- cgit v1.2.3