From 3fd26225218767744d200e1d86b210537c65d7ba Mon Sep 17 00:00:00 2001 From: ExMix Date: Fri, 27 Dec 2013 12:32:28 +0300 Subject: [PATCH] review fix --- drape_head/drape_surface.cpp | 10 ++++------ 1 file changed, 4 insertions(+), 6 deletions(-) diff --git a/drape_head/drape_surface.cpp b/drape_head/drape_surface.cpp index 6d50d833e5..c24bdb16a6 100644 --- a/drape_head/drape_surface.cpp +++ b/drape_head/drape_surface.cpp @@ -7,9 +7,7 @@ #include "../base/logging.hpp" #include "../std/bind.hpp" - -#include -#include +#include "../std/cmath.hpp" namespace { @@ -29,8 +27,8 @@ DrapeSurface::DrapeSurface() m_batcher = new Batcher(); m_programManager = new GpuProgramManager(); - Q_ASSERT(QObject::connect(this, SIGNAL(heightChanged(int)), this, SLOT(RefreshProjector(int)))); - Q_ASSERT(QObject::connect(this, SIGNAL(widthChanged(int)), this, SLOT(RefreshProjector(int)))); + QObject::connect(this, SIGNAL(heightChanged(int)), this, SLOT(RefreshProjector(int))); + QObject::connect(this, SIGNAL(widthChanged(int)), this, SLOT(RefreshProjector(int))); } DrapeSurface::~DrapeSurface() @@ -63,7 +61,7 @@ void DrapeSurface::timerEvent(QTimerEvent * e) { if (e->timerId() == m_timerID) { - static const float _2pi = 6.28318530718; + static const float _2pi = 2 * math::pi; static float angle = 0.0; angle += 0.035; if (angle > _2pi)