forked from organicmaps/organicmaps
changes according to code review.
This commit is contained in:
parent
ce659dc61b
commit
373aaa284c
2 changed files with 6 additions and 4 deletions
|
@ -105,11 +105,13 @@ namespace my
|
|||
{
|
||||
KeyT k = *it;
|
||||
|
||||
MapEntry & e = m_map[k];
|
||||
|
||||
/// erasing only unlocked elements
|
||||
if (m_map[k].m_lockCount == 0)
|
||||
if (e.m_lockCount == 0)
|
||||
{
|
||||
m_curWeight -= m_map[k].m_weight;
|
||||
ValueTraitsT::Evict(m_map[k].m_value);
|
||||
m_curWeight -= e.m_weight;
|
||||
ValueTraitsT::Evict(e.m_value);
|
||||
m_map.erase(k);
|
||||
m_keys.erase(k);
|
||||
|
||||
|
|
|
@ -124,7 +124,7 @@ void BasicRenderPolicy::StartScale()
|
|||
void BasicRenderPolicy::StopScale()
|
||||
{
|
||||
m_DoAddCommand = true;
|
||||
RenderPolicy::StartScale();
|
||||
RenderPolicy::StopScale();
|
||||
}
|
||||
|
||||
bool BasicRenderPolicy::IsEmptyModel() const
|
||||
|
|
Loading…
Add table
Reference in a new issue