From 477f0700f04f626f3c9a15e0ad70adf22bc577f6 Mon Sep 17 00:00:00 2001 From: Maxime Coste Date: Mon, 26 Jun 2017 14:40:01 +0100 Subject: [PATCH] Remove useless Vector, use a ConstArrayView instead --- src/selectors.cc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/selectors.cc b/src/selectors.cc index 87a4a345..962386cb 100644 --- a/src/selectors.cc +++ b/src/selectors.cc @@ -198,7 +198,7 @@ select_to_first_non_blank(const Buffer& buffer, const Selection& selection) Optional select_matching(const Buffer& buffer, const Selection& selection) { - Vector matching_pairs = { '(', ')', '{', '}', '[', ']', '<', '>' }; + ConstArrayView matching_pairs = { '(', ')', '{', '}', '[', ']', '<', '>' }; Utf8Iterator it{buffer.iterator_at(selection.cursor()), buffer}; auto match = matching_pairs.end(); while (not is_eol(*it))