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/wildcard.h | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'src/wildcard.h') 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 &out); +int wildcard_expand_string(const wcstring &wc, const wcstring &base_dir, expand_flags_t flags, std::vector *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 &out, + std::vector *out, expand_flags_t expand_flags, complete_flags_t flags); -- cgit v1.2.3