From b4d93550b65a02fa6863c58e7d683e7f86a3c5dc Mon Sep 17 00:00:00 2001 From: Max Brunsfeld Date: Fri, 17 Apr 2015 11:23:25 -0700 Subject: [PATCH] Remove const qualifier to appease gcc --- src/compiler/prepare_grammar/expand_repeats.cc | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/compiler/prepare_grammar/expand_repeats.cc b/src/compiler/prepare_grammar/expand_repeats.cc index 5dcd63fe..aaf3d48e 100644 --- a/src/compiler/prepare_grammar/expand_repeats.cc +++ b/src/compiler/prepare_grammar/expand_repeats.cc @@ -28,10 +28,10 @@ using rules::Symbol; class ExpandRepeats : public rules::IdentityRuleFn { string rule_name; - vector> existing_repeats; + vector> existing_repeats; rule_ptr expand_repeat(const Repeat *rule) { - for (auto pair : existing_repeats) { + for (const auto pair : existing_repeats) { if (pair.first->operator==(*rule)) return pair.second.copy(); }