summaryrefslogtreecommitdiff
path: root/src/mbgl/util/tile_cover_impl.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/mbgl/util/tile_cover_impl.cpp')
-rw-r--r--src/mbgl/util/tile_cover_impl.cpp6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/mbgl/util/tile_cover_impl.cpp b/src/mbgl/util/tile_cover_impl.cpp
index f97ddeff48..cca58ca7e8 100644
--- a/src/mbgl/util/tile_cover_impl.cpp
+++ b/src/mbgl/util/tile_cover_impl.cpp
@@ -281,7 +281,7 @@ TileCover::Impl::Impl(int32_t z, const Geometry<double>& geom, bool project)
BuildBoundsMap toBoundsMap(z, project);
boundsMap = apply_visitor(toBoundsMap, geom);
- if (boundsMap.size() == 0) return;
+ if (boundsMap.empty()) return;
//Iniitalize the active edge table, and current row span
currentBounds = boundsMap.begin();
@@ -300,7 +300,7 @@ TileCover::Impl::Impl(int32_t z, const Geometry<double>& geom, bool project)
void TileCover::Impl::nextRow() {
// Update activeBounds for next row
if (currentBounds != boundsMap.end()) {
- if (activeBounds.size() == 0 && currentBounds->first > tileY) {
+ if (activeBounds.empty() && currentBounds->first > tileY) {
//For multi-geoms: use the next row with an edge table starting point
tileY = currentBounds->first;
}
@@ -312,7 +312,7 @@ void TileCover::Impl::nextRow() {
}
//Scan the active bounds and update currentRange with x_min, x_max pairs
auto xps = util::scan_row(tileY, activeBounds);
- if (xps.size() == 0) {
+ if (xps.empty()) {
return;
}