diff options
Diffstat (limited to 'indexer')
-rw-r--r-- | indexer/cell_coverer.hpp | 2 | ||||
-rw-r--r-- | indexer/indexer_tests/cell_coverer_test.cpp | 1 |
2 files changed, 1 insertions, 2 deletions
diff --git a/indexer/cell_coverer.hpp b/indexer/cell_coverer.hpp index 972ba8312d..c13b0de61a 100644 --- a/indexer/cell_coverer.hpp +++ b/indexer/cell_coverer.hpp @@ -125,7 +125,7 @@ void CoverSpiral(m2::RectD rect, int maxDepth, std::vector<CellId> & result) CHECK(rect.IsValid(), ()); auto centralCell = Converter::ToCellId(rect.Center().x, rect.Center().y); - auto levelMax = maxDepth - 1; + auto const levelMax = maxDepth - 1; while (levelMax < centralCell.Level() && centralCell.Level() > 0) centralCell = centralCell.Parent(); diff --git a/indexer/indexer_tests/cell_coverer_test.cpp b/indexer/indexer_tests/cell_coverer_test.cpp index 27312051c9..865d28d760 100644 --- a/indexer/indexer_tests/cell_coverer_test.cpp +++ b/indexer/indexer_tests/cell_coverer_test.cpp @@ -60,4 +60,3 @@ UNIT_TEST(MaxDepthCoverSpiral) TEST_EQUAL(cells[0].Level(), depthMax - 1, ()); } } - |