From 0600f31847d8e6d7dcf10ea5f39b7dcbc3427bfb Mon Sep 17 00:00:00 2001 From: Max Brunsfeld Date: Thu, 3 Sep 2015 17:13:56 -0700 Subject: [PATCH] :art: Remove weird reference variables --- src/compiler/prepare_grammar/prepare_grammar.cc | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/compiler/prepare_grammar/prepare_grammar.cc b/src/compiler/prepare_grammar/prepare_grammar.cc index 7c9c93ed..42d60e91 100644 --- a/src/compiler/prepare_grammar/prepare_grammar.cc +++ b/src/compiler/prepare_grammar/prepare_grammar.cc @@ -29,11 +29,11 @@ tuple prepare_grammar( return make_tuple(SyntaxGrammar(), LexicalGrammar(), error); // Replace `Repeat` rules with pairs of recursive rules - const SyntaxGrammar &syntax_grammar = expand_repeats(get<0>(extract_result)); + SyntaxGrammar syntax_grammar = expand_repeats(get<0>(extract_result)); // Expand `String` and `Pattern` rules into full rule trees auto expand_tokens_result = expand_tokens(get<1>(extract_result)); - const LexicalGrammar &lex_grammar = expand_tokens_result.first; + LexicalGrammar lex_grammar = expand_tokens_result.first; error = expand_tokens_result.second; if (error) return make_tuple(SyntaxGrammar(), LexicalGrammar(), error);