diff options
author | vng <viktor.govako@gmail.com> | 2015-08-07 16:16:39 +0300 |
---|---|---|
committer | Alex Zolotarev <alex@maps.me> | 2015-09-23 02:59:55 +0300 |
commit | 8a2c486d2c8368422304ed894ada19ffb93d80be (patch) | |
tree | 5c1147dc31445673fcab2aafc1f35296ba9686ab /indexer/index.cpp | |
parent | ca342cc8422424e998047cdd00d943db524edced (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.cpp | 4 |
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(); } |