diff options
author | Yuri Gorshenin <y@maps.me> | 2017-01-30 16:18:57 +0300 |
---|---|---|
committer | Yuri Gorshenin <y@maps.me> | 2017-01-30 16:18:57 +0300 |
commit | ce1f300e995bf3fcb802cd366951d88bb65d8e26 (patch) | |
tree | 70e55199c98777bcdef73bef0ee79b03260c79e2 /generator | |
parent | c0a9fbc742d200e447670d89cd5067d14f8e9d9a (diff) |
[search] Warnings fixes.
Diffstat (limited to 'generator')
-rw-r--r-- | generator/search_index_builder.cpp | 8 |
1 files changed, 3 insertions, 5 deletions
diff --git a/generator/search_index_builder.cpp b/generator/search_index_builder.cpp index 2d245b04e5..7b242f6d96 100644 --- a/generator/search_index_builder.cpp +++ b/generator/search_index_builder.cpp @@ -210,8 +210,7 @@ struct ValueBuilder<FeatureWithRankAndCenter> { ValueBuilder() = default; - void MakeValue(FeatureType const & ft, feature::TypesHolder const & types, uint32_t index, - FeatureWithRankAndCenter & v) const + void MakeValue(FeatureType const & ft, uint32_t index, FeatureWithRankAndCenter & v) const { v.m_featureId = index; @@ -226,8 +225,7 @@ struct ValueBuilder<FeatureIndexValue> { ValueBuilder() = default; - void MakeValue(FeatureType const & /* f */, feature::TypesHolder const & /* types */, - uint32_t index, FeatureIndexValue & value) const + void MakeValue(FeatureType const & /* f */, uint32_t index, FeatureIndexValue & value) const { value.m_featureId = index; } @@ -272,7 +270,7 @@ public: // Insert synonyms only for countries and states (maybe will add cities in future). FeatureNameInserter<TKey, TValue> inserter( skipIndex.IsCountryOrState(types) ? m_synonyms : nullptr, m_keyValuePairs, hasStreetType); - m_valueBuilder.MakeValue(f, types, index, inserter.m_val); + m_valueBuilder.MakeValue(f, index, inserter.m_val); string const postcode = f.GetMetadata().Get(feature::Metadata::FMD_POSTCODE); if (!postcode.empty()) |