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>2012-02-21 21:25:05 +0400
committerAlex Zolotarev <alex@maps.me>2015-09-23 01:34:15 +0300
commit78169147bb310663c0cf1fae56900944b7900384 (patch)
tree98cdff285fb493452e3b6896f91e8499f71cf74a /generator/statistics.cpp
parent0d6c85b09b019b0423449794c930c0b3f7472833 (diff)
Add named constants for feature geometry getting.
Diffstat (limited to 'generator/statistics.cpp')
-rw-r--r--generator/statistics.cpp6
1 files changed, 3 insertions, 3 deletions
diff --git a/generator/statistics.cpp b/generator/statistics.cpp
index 919c669460..ddd9684625 100644
--- a/generator/statistics.cpp
+++ b/generator/statistics.cpp
@@ -86,9 +86,9 @@ namespace stats
m_info.m_inner[1].Add(innerStats.m_Strips);
m_info.m_inner[2].Add(innerStats.m_Size);
- // get geometry size for the best geometry (-1)
- FeatureType::geom_stat_t const geom = f.GetGeometrySize(-1);
- FeatureType::geom_stat_t const trg = f.GetTrianglesSize(-1);
+ // get geometry size for the best geometry
+ FeatureType::geom_stat_t const geom = f.GetGeometrySize(FeatureType::BEST_GEOMETRY);
+ FeatureType::geom_stat_t const trg = f.GetTrianglesSize(FeatureType::BEST_GEOMETRY);
m_info.AddToSet(geom.m_count, geom.m_size, m_info.m_byPointsCount);
m_info.AddToSet(trg.m_count / 3, trg.m_size, m_info.m_byTrgCount);