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(); }