Remove const qualifier to appease gcc

This commit is contained in:
Max Brunsfeld 2015-04-17 11:23:25 -07:00
parent a54d293317
commit b4d93550b6

View file

@ -28,10 +28,10 @@ using rules::Symbol;
class ExpandRepeats : public rules::IdentityRuleFn {
string rule_name;
vector<pair<const rule_ptr, Symbol>> existing_repeats;
vector<pair<rule_ptr, Symbol>> 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();
}