From c5a0a17f10f3f0bdcf66ea90bd11011aa9c7b65c Mon Sep 17 00:00:00 2001 From: vng Date: Fri, 27 Feb 2015 18:38:29 +0300 Subject: Minor code fixes. --- generator/dumper.cpp | 13 ++++++------- 1 file changed, 6 insertions(+), 7 deletions(-) (limited to 'generator/dumper.cpp') 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 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 -- cgit v1.2.3