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:
authorIlya Zverev <zverik@textual.ru>2016-07-15 18:01:19 +0300
committerIlya Zverev <zverik@textual.ru>2016-07-19 12:53:21 +0300
commit46a5d58ba1fe3b274df149214fe1bbc7bb97b6e1 (patch)
tree3d9baa51399d40e78102e3e1c7a6add4573c0059 /indexer/data_factory.cpp
parent989c84e7bb93994a02ba482e83e8ec3a90ff91fa (diff)
[generator] Add region info section to mwms
Diffstat (limited to 'indexer/data_factory.cpp')
-rw-r--r--indexer/data_factory.cpp11
1 files changed, 8 insertions, 3 deletions
diff --git a/indexer/data_factory.cpp b/indexer/data_factory.cpp
index 965f3f1edf..5f1edc82c0 100644
--- a/indexer/data_factory.cpp
+++ b/indexer/data_factory.cpp
@@ -1,7 +1,9 @@
-#include "coding/file_container.hpp"
#include "indexer/data_factory.hpp"
#include "indexer/interval_index.hpp"
#include "indexer/old/interval_index_101.hpp"
+
+#include "coding/file_container.hpp"
+
#include "defines.hpp"
@@ -10,8 +12,11 @@ void IndexFactory::Load(FilesContainerR const & cont)
ReadVersion(cont, m_version);
m_header.Load(cont);
- ReaderSource<FilesContainerR::TReader> src(cont.GetReader(REGION_INFO_FILE_TAG));
- m_region.Deserialize(src);
+ if (cont.IsExist(REGION_INFO_FILE_TAG))
+ {
+ ReaderSource<FilesContainerR::TReader> src(cont.GetReader(REGION_INFO_FILE_TAG));
+ m_regionData.Deserialize(src);
+ }
}
IntervalIndexIFace * IndexFactory::CreateIndex(ModelReaderPtr reader) const