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>2014-11-05 02:56:55 +0300
committerAlex Zolotarev <alex@maps.me>2015-09-23 02:32:16 +0300
commitdfb1644047eee71484007806b53457ed4f4f03ff (patch)
tree4a4b9df86b67ab8f591238feeff8f285a7ae864c /indexer/cell_coverer.hpp
parent39818e3e081419e1307017bf90acc9a886eb64b8 (diff)
Minor refaсtoring: removed CoordPointT typedef to avoid disambiguate.
Diffstat (limited to 'indexer/cell_coverer.hpp')
-rw-r--r--indexer/cell_coverer.hpp10
1 files changed, 5 insertions, 5 deletions
diff --git a/indexer/cell_coverer.hpp b/indexer/cell_coverer.hpp
index 3763fac592..d08bac64fe 100644
--- a/indexer/cell_coverer.hpp
+++ b/indexer/cell_coverer.hpp
@@ -9,14 +9,14 @@
template <typename BoundsT, typename CellIdT>
inline void SplitRectCell(CellIdT id,
- CoordT minX, CoordT minY,
- CoordT maxX, CoordT maxY,
+ double minX, double minY,
+ double maxX, double maxY,
vector<CellIdT> & result)
{
for (int8_t i = 0; i < 4; ++i)
{
CellIdT child = id.Child(i);
- CoordT minCellX, minCellY, maxCellX, maxCellY;
+ double minCellX, minCellY, maxCellX, maxCellY;
CellIdConverter<BoundsT, CellIdT>::GetCellBounds(child, minCellX, minCellY, maxCellX, maxCellY);
if (!((maxX < minCellX) || (minX > maxCellX) || (maxY < minCellY) || (minY > maxCellY)))
result.push_back(child);
@@ -24,8 +24,8 @@ inline void SplitRectCell(CellIdT id,
}
template <typename BoundsT, typename CellIdT>
-inline void CoverRect(CoordT minX, CoordT minY,
- CoordT maxX, CoordT maxY,
+inline void CoverRect(double minX, double minY,
+ double maxX, double maxY,
size_t cells_count, int maxDepth,
vector<CellIdT> & cells)
{