Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/mapsme/omim.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorvng <viktor.govako@gmail.com>2015-02-27 18:38:29 +0300
committerAlex Zolotarev <alex@maps.me>2015-09-23 02:37:54 +0300
commitc5a0a17f10f3f0bdcf66ea90bd11011aa9c7b65c (patch)
tree20feea3cc57c4918561b628c07b41a3d07702d6a /generator/dumper.cpp
parent9908d8001333865ba95e0305621ab75ab1a57a11 (diff)
Minor code fixes.
Diffstat (limited to 'generator/dumper.cpp')
-rw-r--r--generator/dumper.cpp13
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>