changes according to code review.

This commit is contained in:
rachytski 2012-03-29 12:40:44 +04:00 committed by Alex Zolotarev
parent ce659dc61b
commit 373aaa284c
2 changed files with 6 additions and 4 deletions

View file

@ -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);

View file

@ -124,7 +124,7 @@ void BasicRenderPolicy::StartScale()
void BasicRenderPolicy::StopScale()
{
m_DoAddCommand = true;
RenderPolicy::StartScale();
RenderPolicy::StopScale();
}
bool BasicRenderPolicy::IsEmptyModel() const