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-07-22 17:35:33 +0300
committerAlex Zolotarev <alex@maps.me>2015-09-23 02:57:15 +0300
commitc64c35234e87cab62e788cd4eee2c2236f159dcc (patch)
treefd674ad098da4cba5a754493ee8dfd7b4a3a0876 /indexer/index.cpp
parent5399343271ccb738d2624fb25250ba3e9694e21c (diff)
Review fixes 2.
Diffstat (limited to 'indexer/index.cpp')
-rw-r--r--indexer/index.cpp12
1 files changed, 6 insertions, 6 deletions
diff --git a/indexer/index.cpp b/indexer/index.cpp
index c34db7002a..b1c7289fce 100644
--- a/indexer/index.cpp
+++ b/indexer/index.cpp
@@ -24,12 +24,12 @@ MwmValue::MwmValue(LocalCountryFile const & localFile)
void MwmValue::SetTable(MwmInfoEx & info)
{
- if (GetHeader().GetFormat() >= version::v5)
- {
- if (!info.m_table)
- info.m_table = feature::FeaturesOffsetsTable::CreateIfNotExistsAndLoad(m_cont);
- m_table = info.m_table.get();
- }
+ if (GetHeader().GetFormat() < version::v5)
+ return;
+
+ if (!info.m_table)
+ info.m_table = feature::FeaturesOffsetsTable::CreateIfNotExistsAndLoad(m_cont);
+ m_table = info.m_table.get();
}
//////////////////////////////////////////////////////////////////////////////////