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