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>2011-10-26 14:10:54 +0400
committerAlex Zolotarev <alex@maps.me>2015-09-23 01:26:53 +0300
commitb4d57fad501b83265e17a1a09a7994e802f0352e (patch)
tree68e856616276107c50071a8265a6e307ab11f07a /indexer/mwm_set.cpp
parent910e94c5377d3fb26751f35720af1f6a7563de56 (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.cpp4
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;
}