Skip to content

Commit

Permalink
Review fixes
Browse files Browse the repository at this point in the history
  • Loading branch information
r.kuznetsov committed Nov 30, 2015
1 parent 0ef3327 commit 8505cb9
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 2 deletions.
4 changes: 2 additions & 2 deletions drape_frontend/message_queue.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -37,12 +37,12 @@ void MessageQueue::PushMessage(dp::TransferPointer<Message> message, MessagePrio
{
case MessagePriority::Normal:
{
m_messages.push_back(dp::MasterPointer<Message>(message));
m_messages.emplace_back(message);
break;
}
case MessagePriority::High:
{
m_messages.insert(m_messages.begin(), dp::MasterPointer<Message>(message));
m_messages.emplace_front(message);
break;
}
default:
Expand Down
3 changes: 3 additions & 0 deletions map/framework.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -897,6 +897,8 @@ void Framework::EnterBackground()
#ifndef OMIM_OS_ANDROID
ClearAllCaches();
#endif

ASSERT(!m_drapeEngine.IsNull(), ("Drape engine has not been initialized yet"));
if (!m_drapeEngine.IsNull())
m_drapeEngine->SetRenderingEnabled(false);
}
Expand All @@ -905,6 +907,7 @@ void Framework::EnterForeground()
{
m_startForegroundTime = my::Timer::LocalTime();

ASSERT(!m_drapeEngine.IsNull(), ("Drape engine has not been initialized yet"));
if (!m_drapeEngine.IsNull())
m_drapeEngine->SetRenderingEnabled(true);
}
Expand Down

0 comments on commit 8505cb9

Please sign in to comment.