From 55abb6316f705195137096182c8c1be3bf6d45d5 Mon Sep 17 00:00:00 2001 From: ExMix Date: Mon, 30 Jun 2014 14:23:57 +0300 Subject: [PATCH] review fixes --- geometry/screenbase.cpp | 4 ++-- geometry/screenbase.hpp | 4 ++-- map/framework.cpp | 4 ++-- 3 files changed, 6 insertions(+), 6 deletions(-) diff --git a/geometry/screenbase.cpp b/geometry/screenbase.cpp index cd81c273f9..1bbff8cf87 100644 --- a/geometry/screenbase.cpp +++ b/geometry/screenbase.cpp @@ -208,8 +208,8 @@ void ScreenBase::GetTouchRect(m2::PointD const & pixPoint, double pixRadius, glbRect = m2::AnyRectD(PtoG(pixPoint), m_Angle, m2::RectD(-r, -r, r, r)); } -void ScreenBase::GetTouchRect(m2::PointD const & pixPoint, double pxWidth, - double pxHeight, m2::AnyRectD & glbRect) const +void ScreenBase::GetTouchRect(m2::PointD const & pixPoint, double const pxWidth, + double const pxHeight, m2::AnyRectD & glbRect) const { double const width = pxWidth * m_Scale; double const height = pxHeight * m_Scale; diff --git a/geometry/screenbase.hpp b/geometry/screenbase.hpp index f820df3671..eb74d61937 100644 --- a/geometry/screenbase.hpp +++ b/geometry/screenbase.hpp @@ -102,8 +102,8 @@ public: void PtoG(m2::RectD const & pr, m2::RectD & gr) const; void GetTouchRect(m2::PointD const & pixPoint, double pixRadius, m2::AnyRectD & glbRect) const; - void GetTouchRect(const m2::PointD & pixPoint, double pxWidth, - double pxHeight, m2::AnyRectD & glbRect) const; + void GetTouchRect(m2::PointD const & pixPoint, double const pxWidth, + double const pxHeight, m2::AnyRectD & glbRect) const; MatrixT const & GtoPMatrix() const { return m_GtoP; } MatrixT const & PtoGMatrix() const { return m_PtoG; } diff --git a/map/framework.cpp b/map/framework.cpp index a8aa7d0015..00760f200c 100644 --- a/map/framework.cpp +++ b/map/framework.cpp @@ -1678,8 +1678,8 @@ UserMark const * Framework::GetUserMark(m2::PointD const & pxPoint, bool isLongP } m2::AnyRectD bmSearchRect; - double pxWidth = TOUCH_PIXEL_RADIUS * GetVisualScale(); - double pxHeight = (TOUCH_PIXEL_RADIUS + BM_TOUCH_PIXEL_INCREASE) * GetVisualScale(); + double const pxWidth = TOUCH_PIXEL_RADIUS * GetVisualScale(); + double const pxHeight = (TOUCH_PIXEL_RADIUS + BM_TOUCH_PIXEL_INCREASE) * GetVisualScale(); m_navigator.GetTouchRect(pxPoint + m2::PointD(0, BM_TOUCH_PIXEL_INCREASE), pxWidth, pxHeight, bmSearchRect); MainTouchRectHolder holder(rect, bmSearchRect); UserMark const * mark = m_bmManager.FindNearestUserMark(holder);