diff options
author | vng <viktor.govako@gmail.com> | 2011-10-26 14:10:54 +0400 |
---|---|---|
committer | Alex Zolotarev <alex@maps.me> | 2015-09-23 01:26:53 +0300 |
commit | b4d57fad501b83265e17a1a09a7994e802f0352e (patch) | |
tree | 68e856616276107c50071a8265a6e307ab11f07a /indexer/mwm_set.cpp | |
parent | 910e94c5377d3fb26751f35720af1f6a7563de56 (diff) |
Don't make additional read of mwm header in app startup.
Diffstat (limited to 'indexer/mwm_set.cpp')
-rw-r--r-- | indexer/mwm_set.cpp | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/indexer/mwm_set.cpp b/indexer/mwm_set.cpp index 4a81891ee9..7e87f77627 100644 --- a/indexer/mwm_set.cpp +++ b/indexer/mwm_set.cpp @@ -108,7 +108,7 @@ string MwmSet::MwmLock::GetCountryName() const return src.substr(0, src.size() - strlen(DATA_FILE_EXTENSION)); } -bool MwmSet::Add(string const & fileName) +bool MwmSet::Add(string const & fileName, m2::RectD & r) { threads::MutexGuard mutexGuard(m_lock); UNUSED_VALUE(mutexGuard); @@ -124,6 +124,8 @@ bool MwmSet::Add(string const & fileName) GetInfo(fileName, m_info[id]); m_info[id].m_lockCount = 0; m_info[id].m_status = MwmInfo::STATUS_ACTIVE; + + r = m_info[id].m_limitRect; return true; } |