diff options
author | vng <viktor.govako@gmail.com> | 2012-03-06 02:24:33 +0400 |
---|---|---|
committer | Alex Zolotarev <alex@maps.me> | 2015-09-23 01:36:28 +0300 |
commit | fa598cd43e9c52c1492f5f105f5868dd4690f209 (patch) | |
tree | a63a5dc0ead2ce8cf37f08e42da2cd4e41bd789b /indexer/feature_data.cpp | |
parent | 99179605b3633890a68376e886c45ecd393c2c3c (diff) |
[search] Index generation: skip type 'building' for features with no names.
Diffstat (limited to 'indexer/feature_data.cpp')
-rw-r--r-- | indexer/feature_data.cpp | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/indexer/feature_data.cpp b/indexer/feature_data.cpp index 57e2a97ca6..8cba0845f3 100644 --- a/indexer/feature_data.cpp +++ b/indexer/feature_data.cpp @@ -23,6 +23,16 @@ string TypesHolder::DebugPrint() const return s; } +void TypesHolder::Remove(uint32_t t) +{ + if (m_size > 0) + { + uint32_t * e = m_types + m_size; + if (std::remove(m_types, e, t) != e) + --m_size; + } +} + void FeatureParamsBase::MakeZero() { layer = 0; |