diff --git a/geometry/geometry_tests/polygon_test.cpp b/geometry/geometry_tests/polygon_test.cpp index c7cfacc0c5..1a74ed17da 100644 --- a/geometry/geometry_tests/polygon_test.cpp +++ b/geometry/geometry_tests/polygon_test.cpp @@ -66,7 +66,7 @@ namespace void TestFindStrip(P const * beg, size_t n) { size_t const i = FindSingleStrip(n, IsDiagonalVisibleFunctor

(beg, beg + n)); - TEST_LESS(i, n, ()); + TEST_LESS ( i, n, () ); vector test; MakeSingleStripFromIndex(i, n, MakeBackInsertFunctor(test)); @@ -74,7 +74,7 @@ namespace sort(test.begin(), test.end()); unique(test.begin(), test.end()); - TEST_EQUAL(test.size(), n, ()); + TEST_EQUAL ( test.size(), n, () ); } void TestFindStripMulti(P const * beg, size_t n) @@ -92,8 +92,9 @@ UNIT_TEST(FindSingleStrip) } { - P poly[] = { P(0, 0), P(2, -1), P(3, -1), P(3, 2), P(2, 2), P(2, 1), P(0, 1) }; - TestFindStripMulti(poly, ARRAY_SIZE(poly)); + P poly[] = { P(0, 0), P(2, 0), P(2, -1), P(3, -1), P(3, 2), P(2, 2), P(2, 1), P(0, 1) }; + size_t const n = ARRAY_SIZE(poly); + TEST_EQUAL ( FindSingleStrip(n, IsDiagonalVisibleFunctor

(poly, poly + n)), n, () ); } { diff --git a/indexer/indexer_tool/statistics.cpp b/indexer/indexer_tool/statistics.cpp index 946beb8c41..9ddd6e210d 100644 --- a/indexer/indexer_tool/statistics.cpp +++ b/indexer/indexer_tool/statistics.cpp @@ -59,7 +59,7 @@ namespace stats uint32_t const datSize = f.GetAllSize(); m_info.m_all.Add(datSize); //m_info.m_names.Add(f.GetNameSize()); - m_info.m_types.Add(f.GetTypesSize()); + //m_info.m_types.Add(f.GetTypesSize()); FeatureType::geom_stat_t geom = f.GetGeometrySize(-1); FeatureType::geom_stat_t trg = f.GetTrianglesSize(-1); @@ -145,8 +145,8 @@ namespace stats void PrintStatistic(MapInfo & info) { PrintInfo("DAT", info.m_all); - PrintInfo("NAMES", info.m_names); - PrintInfo("TYPES", info.m_types); + //PrintInfo("NAMES", info.m_names); + //PrintInfo("TYPES", info.m_types); PrintTop("Top SIZE by Geometry Type", info.m_byGeomType); PrintTop("Top SIZE by Classificator Type", info.m_byClassifType); diff --git a/indexer/indexer_tool/statistics.hpp b/indexer/indexer_tool/statistics.hpp index cf1116c890..1321dfd33c 100644 --- a/indexer/indexer_tool/statistics.hpp +++ b/indexer/indexer_tool/statistics.hpp @@ -55,14 +55,17 @@ namespace stats set > m_byClassifType; set > m_byPointsCount, m_byTrgCount; - GeneralInfo m_all, m_names, m_types; + GeneralInfo m_all; //, m_names, m_types; template void AddToSet(TKey key, uint32_t sz, TSet & theSet) { - // GCC doesn't allow to modify set value ... - const_cast( - theSet.insert(GeneralInfoKey(key)).first->m_info).Add(sz); + if (sz > 0) + { + // GCC doesn't allow to modify set value ... + const_cast( + theSet.insert(GeneralInfoKey(key)).first->m_info).Add(sz); + } } };