From cf0e88b3b7090370e69d05ec760b690d11dbb7ce Mon Sep 17 00:00:00 2001 From: ExMix Date: Thu, 2 Apr 2015 16:19:25 +0300 Subject: [PATCH] review fixes --- drape_gui/copyright_label.cpp | 9 ++++----- 1 file changed, 4 insertions(+), 5 deletions(-) diff --git a/drape_gui/copyright_label.cpp b/drape_gui/copyright_label.cpp index 0847a30099..68704393f8 100644 --- a/drape_gui/copyright_label.cpp +++ b/drape_gui/copyright_label.cpp @@ -12,7 +12,7 @@ namespace gui namespace { - float const CopyrightVisibleTime = 3.0f; + double const COPYRIGHT_VISIBLE_TIME = 3.0f; class CopyrightHandle : public Handle { @@ -36,7 +36,7 @@ namespace m_firstRender = false; m_timer.Reset(); } - else if (m_timer.ElapsedSeconds() > CopyrightVisibleTime) + else if (m_timer.ElapsedSeconds() > COPYRIGHT_VISIBLE_TIME) { DrapeGui::Instance().DeactivateCopyright(); SetIsVisible(false); @@ -71,9 +71,8 @@ dp::TransferPointer CopyrightLabel::Draw(dp::RefPointer handle(new CopyrightHandle(m_position.m_anchor, - m_position.m_pixelPivot, - size)); + dp::MasterPointer handle( + new CopyrightHandle(m_position.m_anchor, m_position.m_pixelPivot, size)); dp::MasterPointer renderer(new ShapeRenderer()); dp::Batcher batcher(indexCount, vertexCount);