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:
authorYury Melnichek <melnichek@gmail.com>2011-09-11 14:46:13 +0400
committerAlex Zolotarev <alex@maps.me>2015-09-23 01:23:42 +0300
commit4d56813e90f79ba0468cec3ceb448f214988a405 (patch)
tree5113594e54e35e8b247d1e7d8947a503c552763f /indexer/cell_id.hpp
parentf1efd73fe689d8fbceff7b453567f2660f554aaf (diff)
CellId refactoring: remove default value for level in CellId::FromXY().
Diffstat (limited to 'indexer/cell_id.hpp')
-rw-r--r--indexer/cell_id.hpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/indexer/cell_id.hpp b/indexer/cell_id.hpp
index d0ee6641b6..1a4e62f143 100644
--- a/indexer/cell_id.hpp
+++ b/indexer/cell_id.hpp
@@ -45,7 +45,7 @@ public:
{
uint32_t const ix = static_cast<uint32_t>(XToCellIdX(x));
uint32_t const iy = static_cast<uint32_t>(YToCellIdY(y));
- CellIdT id = CellIdT::FromXY(ix, iy);
+ CellIdT id = CellIdT::FromXY(ix, iy, CellIdT::DEPTH_LEVELS - 1);
#if 0 // DEBUG
pair<uint32_t, uint32_t> ixy = id.XY();
ASSERT(Abs(ixy.first - ix) <= 1, (x, y, id, ixy));