From 5b90fa0bda81aa278aff23d745a92d0a772be991 Mon Sep 17 00:00:00 2001 From: ridiculousfish Date: Sun, 28 Jul 2019 15:37:31 -0700 Subject: [PATCH] Add a missing reference to a range-based for loop --- src/parse_execution.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/parse_execution.cpp b/src/parse_execution.cpp index 75d7cc7d0..8fb9d6f91 100644 --- a/src/parse_execution.cpp +++ b/src/parse_execution.cpp @@ -907,7 +907,7 @@ parse_execution_result_t parse_execution_context_t::expand_arguments_from_nodes( // may have more or fewer, if there are wildcards involved). out_arguments->reserve(out_arguments->size() + argument_nodes.size()); std::vector arg_expanded; - for (const auto arg_node : argument_nodes) { + for (const auto &arg_node : argument_nodes) { // Expect all arguments to have source. assert(arg_node.has_source()); const wcstring arg_str = arg_node.get_source(pstree->src);