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-08-07 16:16:39 +0300
committerAlex Zolotarev <alex@maps.me>2015-09-23 02:59:55 +0300
commit8a2c486d2c8368422304ed894ada19ffb93d80be (patch)
tree5c1147dc31445673fcab2aafc1f35296ba9686ab /indexer/index.cpp
parentca342cc8422424e998047cdd00d943db524edced (diff)
[mwm] Store World’s temporary index files in writable directory according to their inner version.
Diffstat (limited to 'indexer/index.cpp')
-rw-r--r--indexer/index.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/indexer/index.cpp b/indexer/index.cpp
index d08767e1c2..e384ab973b 100644
--- a/indexer/index.cpp
+++ b/indexer/index.cpp
@@ -16,7 +16,7 @@ using platform::LocalCountryFile;
MwmValue::MwmValue(LocalCountryFile const & localFile)
: m_cont(platform::GetCountryReader(localFile, MapOptions::Map)),
- m_countryFile(localFile.GetCountryFile()),
+ m_file(localFile),
m_table(0)
{
m_factory.Load(m_cont);
@@ -28,7 +28,7 @@ void MwmValue::SetTable(MwmInfoEx & info)
return;
if (!info.m_table)
- info.m_table = feature::FeaturesOffsetsTable::CreateIfNotExistsAndLoad(m_cont);
+ info.m_table = feature::FeaturesOffsetsTable::CreateIfNotExistsAndLoad(m_file, m_cont);
m_table = info.m_table.get();
}