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:
authorYuri Gorshenin <y@maps.me>2015-05-12 13:36:18 +0300
committerAlex Zolotarev <alex@maps.me>2015-09-23 02:47:20 +0300
commit334bc1a2310ee00ca14aad7fac0aa9c8159d2b49 (patch)
tree3ed7b60ef2233018fca04c9d3ba7b5d2d9c36334 /indexer/mwm_set.cpp
parentebcbdafa351cc333f958dac2bedd3876d399f95c (diff)
Review fixes.
Diffstat (limited to 'indexer/mwm_set.cpp')
-rw-r--r--indexer/mwm_set.cpp8
1 files changed, 4 insertions, 4 deletions
diff --git a/indexer/mwm_set.cpp b/indexer/mwm_set.cpp
index 34652c5484..e5d625f0dc 100644
--- a/indexer/mwm_set.cpp
+++ b/indexer/mwm_set.cpp
@@ -87,9 +87,9 @@ void MwmSet::Cleanup()
ClearCacheImpl(m_cache.begin(), m_cache.end());
#ifdef DEBUG
- for (auto it = m_info.begin(); it != m_info.end(); ++it)
+ for (auto const & p : m_info)
{
- MwmInfo const & info = *it->second;
+ MwmInfo const & info = *p.second;
if (info.IsUpToDate())
{
ASSERT_EQUAL(info.m_lockCount, 0, (info.m_fileName));
@@ -103,7 +103,7 @@ MwmSet::MwmId MwmSet::GetIdByName(TMwmFileName const & name) const
{
ASSERT(!name.empty(), ());
auto const it = m_info.find(name);
- if (it == m_info.end())
+ if (it == m_info.cend())
return MwmId();
return MwmId(it->second);
}
@@ -117,7 +117,7 @@ pair<MwmSet::MwmLock, bool> MwmSet::Register(TMwmFileName const & fileName)
return RegisterImpl(fileName);
shared_ptr<MwmInfo> info = id.GetInfo();
if (info->IsRegistered())
- LOG(LWARNING, ("Trying to add already registered map", fileName));
+ LOG(LWARNING, ("Trying to add already registered mwm:", fileName));
else
info->SetStatus(MwmInfo::STATUS_UP_TO_DATE);
return make_pair(GetLock(id), false);