diff options
Diffstat (limited to 'generator/dumper.cpp')
-rw-r--r-- | generator/dumper.cpp | 13 |
1 files changed, 6 insertions, 7 deletions
diff --git a/generator/dumper.cpp b/generator/dumper.cpp index 926620837d..342063755c 100644 --- a/generator/dumper.cpp +++ b/generator/dumper.cpp @@ -40,17 +40,16 @@ namespace feature ++m_namesCount; m_currFeatureTypes.clear(); - f.ForEachTypeRef(*this); + f.ForEachType([this](uint32_t type) + { + m_currFeatureTypes.push_back(type); + }); CHECK(!m_currFeatureTypes.empty(), ("Feature without any type???")); - pair<value_type::iterator, bool> found = m_stats.insert(make_pair(m_currFeatureTypes, 1)); + + auto found = m_stats.insert(make_pair(m_currFeatureTypes, 1)); if (!found.second) found.first->second++; } - - void operator()(uint32_t type) - { - m_currFeatureTypes.push_back(type); - } }; template <class T> |