diff options
author | Matthias Schiffer <mschiffer@universe-factory.net> | 2015-04-18 19:25:22 +0200 |
---|---|---|
committer | Matthias Schiffer <mschiffer@universe-factory.net> | 2015-04-18 19:25:22 +0200 |
commit | 30c2141182f4eed1d3549603a7aa92c57b35d129 (patch) | |
tree | 914f3e0ecd12072da94ce4b4865abb0c08ad1856 /src/output_source.cpp | |
parent | 96d622144919a84508cf50eba1b1328ca44d1fed (diff) | |
download | solar-30c2141182f4eed1d3549603a7aa92c57b35d129.tar solar-30c2141182f4eed1d3549603a7aa92c57b35d129.zip |
Replace all make_pair calls with initializer lists
Diffstat (limited to 'src/output_source.cpp')
-rw-r--r-- | src/output_source.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/output_source.cpp b/src/output_source.cpp index 576ecbc..0ae5628 100644 --- a/src/output_source.cpp +++ b/src/output_source.cpp @@ -142,11 +142,11 @@ void output_source_t::emit_gotos(const std::string &lhs) { std::map<unsigned, std::set<unsigned>> gotos; for (size_t state = 0; state < get_generator()->get_state_count(); state++) { - auto it = get_generator()->get_gotos().find(std::make_pair(state, lhs)); + auto it = get_generator()->get_gotos().find({state, lhs}); if (it == get_generator()->get_gotos().end()) continue; - std::set<unsigned> &states = gotos.insert(std::make_pair(it->second, std::set<unsigned>())).first->second; + std::set<unsigned> &states = gotos.insert({it->second, std::set<unsigned>()}).first->second; states.insert(state); } |