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:
authorSergey Magidovich <mgsergio@mapswithme.com>2016-02-07 16:06:45 +0300
committerSergey Yershov <yershov@corp.mail.ru>2016-03-23 16:16:53 +0300
commit54fa2ac1c7fff965b1a504a265db719cc89aafff (patch)
tree8618f54228577a0cac1b04c0cd8e1652d5b01b56 /indexer/feature_algo.cpp
parentb7b08920aa17ddb2514fc7dc83a794d7ef11a193 (diff)
Join ForEachPoint and ForEachPointRef.
Join ForEachTriangle and ForEachTriangleRef.
Diffstat (limited to 'indexer/feature_algo.cpp')
-rw-r--r--indexer/feature_algo.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/indexer/feature_algo.cpp b/indexer/feature_algo.cpp
index 2c64a7ba81..30c822b2d0 100644
--- a/indexer/feature_algo.cpp
+++ b/indexer/feature_algo.cpp
@@ -113,7 +113,7 @@ m2::PointD GetCenter(FeatureType const & f, int scale)
case GEOM_LINE:
{
CalculateLineCenter doCalc;
- f.ForEachPointRef(doCalc, scale);
+ f.ForEachPoint(doCalc, scale);
return doCalc.GetCenter();
}
@@ -121,7 +121,7 @@ m2::PointD GetCenter(FeatureType const & f, int scale)
{
ASSERT_EQUAL(type, GEOM_AREA, ());
CalculatePointOnSurface doCalc(f.GetLimitRect(scale));
- f.ForEachTriangleRef(doCalc, scale);
+ f.ForEachTriangle(doCalc, scale);
return doCalc.GetCenter();
}
}