Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/mapsme/omim.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorvng <viktor.govako@gmail.com>2014-11-05 02:56:55 +0300
committerAlex Zolotarev <alex@maps.me>2015-09-23 02:32:16 +0300
commitdfb1644047eee71484007806b53457ed4f4f03ff (patch)
tree4a4b9df86b67ab8f591238feeff8f285a7ae864c /map/mwm_tests
parent39818e3e081419e1307017bf90acc9a886eb64b8 (diff)
Minor refaсtoring: removed CoordPointT typedef to avoid disambiguate.
Diffstat (limited to 'map/mwm_tests')
-rw-r--r--map/mwm_tests/mwm_foreach_test.cpp3
-rw-r--r--map/mwm_tests/mwm_index_test.cpp2
2 files changed, 2 insertions, 3 deletions
diff --git a/map/mwm_tests/mwm_foreach_test.cpp b/map/mwm_tests/mwm_foreach_test.cpp
index bbab151564..438efe78de 100644
--- a/map/mwm_tests/mwm_foreach_test.cpp
+++ b/map/mwm_tests/mwm_foreach_test.cpp
@@ -76,11 +76,10 @@ public:
m_intersect = m_rect.IsPointInside(p);
}
- void operator() (CoordPointT const & p)
+ void operator() (m2::PointD const & pt)
{
if (m_intersect) return;
- m2::PointD pt(p.first, p.second);
if (m_isPrev)
{
m2::PointD d1 = m_prev;
diff --git a/map/mwm_tests/mwm_index_test.cpp b/map/mwm_tests/mwm_index_test.cpp
index 732b803ed9..0d1c1ed093 100644
--- a/map/mwm_tests/mwm_index_test.cpp
+++ b/map/mwm_tests/mwm_index_test.cpp
@@ -23,7 +23,7 @@ public:
void operator() (FeatureType const & ft)
{
bool res = false;
- ft.ForEachPoint([&res] (CoordPointT const &) { res = true; }, m_scale);
+ ft.ForEachPoint([&res] (m2::PointD const &) { res = true; }, m_scale);
ft.ForEachTriangle([&res] (m2::PointD const &, m2::PointD const &, m2::PointD const &) { res = true; }, m_scale);
TEST(res, (ft, "Scale =", m_scale));