From 4ed7d5a1b214101efadbff4b808dbc782ef97dee Mon Sep 17 00:00:00 2001 From: Matthias Schiffer Date: Sat, 18 Apr 2015 16:55:06 +0200 Subject: parse: minor code simplification --- src/parse.y | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) (limited to 'src/parse.y') diff --git a/src/parse.y b/src/parse.y index 0d9bb05..cacf898 100644 --- a/src/parse.y +++ b/src/parse.y @@ -91,8 +91,7 @@ directive |= SYMBOL(lhs) "|=" rhs(rhs) action(action) { } directive |= SYMBOL(lhs) "|=" '(' CHAR(c1) "..." CHAR(c2) ')' ';' { - vars_t vars; - vars.emplace_back(); + vars_t vars(1); for (unsigned int c = c1; c <= c2; c++) grammar->add_rule({item_t(*lhs, {symbol_t::make_char(c)}), vars, std::string()}); -- cgit v1.2.3