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:
authorYuri Gorshenin <y@maps.me>2016-04-19 12:38:24 +0300
committerYuri Gorshenin <y@maps.me>2016-04-19 16:53:33 +0300
commit7839a1ec0624b4a5e70e7c2bf70caf81e8e77eed (patch)
tree1d702d686cbca7b835ca7623bef19e4141351832 /indexer/features_vector.hpp
parent11e169efc98d5fd393122df1ce34ed26b77aa949 (diff)
[generator, indexer] Fixed postcodes handling.
Fixed postcodes handling in generator - now they're stored in the metadata. Also, fixed iteration over features in features vector.
Diffstat (limited to 'indexer/features_vector.hpp')
-rw-r--r--indexer/features_vector.hpp6
1 files changed, 6 insertions, 0 deletions
diff --git a/indexer/features_vector.hpp b/indexer/features_vector.hpp
index 110a85216d..6daf2eb093 100644
--- a/indexer/features_vector.hpp
+++ b/indexer/features_vector.hpp
@@ -29,6 +29,12 @@ public:
{
FeatureType ft;
ft.Deserialize(m_LoadInfo.GetLoader(), data);
+
+ // We can't properly set MwmId here, because FeaturesVector
+ // works with FileContainerR, not with MwmId/MwmHandle/MwmValue.
+ // But it's OK to set at least feature's index, because it can
+ // be used later for Metadata loading.
+ ft.SetID(FeatureID(MwmSet::MwmId(), index));
toDo(ft, m_table ? index++ : pos);
});
}