summaryrefslogtreecommitdiffstats
path: root/src/parse.y
diff options
context:
space:
mode:
authorMatthias Schiffer <mschiffer@universe-factory.net>2015-04-18 19:25:22 +0200
committerMatthias Schiffer <mschiffer@universe-factory.net>2015-04-18 19:25:22 +0200
commit30c2141182f4eed1d3549603a7aa92c57b35d129 (patch)
tree914f3e0ecd12072da94ce4b4865abb0c08ad1856 /src/parse.y
parent96d622144919a84508cf50eba1b1328ca44d1fed (diff)
downloadsolar-30c2141182f4eed1d3549603a7aa92c57b35d129.tar
solar-30c2141182f4eed1d3549603a7aa92c57b35d129.zip
Replace all make_pair calls with initializer lists
Diffstat (limited to 'src/parse.y')
-rw-r--r--src/parse.y8
1 files changed, 4 insertions, 4 deletions
diff --git a/src/parse.y b/src/parse.y
index e8d26d3..db959df 100644
--- a/src/parse.y
+++ b/src/parse.y
@@ -41,15 +41,15 @@ grammar |= grammar directive;
directive |= "%type" SYMBOL(nonterm) BLOCK(type) {
- grammar->nonterm_types.insert(std::make_pair(*nonterm, *type));
+ grammar->nonterm_types.insert({*nonterm, *type});
}
directive |= "%type" term(term) BLOCK(type) csymbol(name) {
- grammar->term_types.insert(std::make_pair(*term, std::make_pair(*type, *name)));
+ grammar->term_types.insert({*term, {*type, *name}});
}
directive |= "%destructor" symbol(sym) csymbol(name) {
- grammar->destructors.insert(std::make_pair(*sym, *name));
+ grammar->destructors.insert({*sym, *name});
}
directive |= "%namespace" namespace(ns) {
@@ -65,7 +65,7 @@ directive |= "%header" BLOCK(block) {
}
directive |= "%extra_arg" BLOCK(type) csymbol(name) {
- grammar->extra_args.push_back(std::make_pair(*type, *name));
+ grammar->extra_args.emplace_back(*type, *name);
}
directive |= SYMBOL(lhs) "|=" rhs(rhs) action(action) {