diff options
author | Sergey Magidovich <mgsergio@mapswithme.com> | 2016-02-07 16:06:45 +0300 |
---|---|---|
committer | Sergey Yershov <yershov@corp.mail.ru> | 2016-03-23 16:16:53 +0300 |
commit | 54fa2ac1c7fff965b1a504a265db719cc89aafff (patch) | |
tree | 8618f54228577a0cac1b04c0cd8e1652d5b01b56 /indexer/feature_algo.cpp | |
parent | b7b08920aa17ddb2514fc7dc83a794d7ef11a193 (diff) |
Join ForEachPoint and ForEachPointRef.
Join ForEachTriangle and ForEachTriangleRef.
Diffstat (limited to 'indexer/feature_algo.cpp')
-rw-r--r-- | indexer/feature_algo.cpp | 4 |
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(); } } |