diff options
author | Bruno de Oliveira Abinader <bruno@mapbox.com> | 2017-05-12 16:19:05 +0300 |
---|---|---|
committer | Bruno de Oliveira Abinader <bruno@mapbox.com> | 2017-05-12 18:07:36 +0300 |
commit | 19c15ab557728247ea900118aaace1e45763baf4 (patch) | |
tree | 90e4d0070ad4e1d760babc3b6bc53d9ec5ca4408 /src/mbgl/style | |
parent | c6eb4afe0ebdabfd436a80adf8af505779859404 (diff) | |
download | qtlocation-mapboxgl-19c15ab557728247ea900118aaace1e45763baf4.tar.gz |
[tidy] modernize-loop-convert
Diffstat (limited to 'src/mbgl/style')
-rw-r--r-- | src/mbgl/style/style.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/mbgl/style/style.cpp b/src/mbgl/style/style.cpp index 97d30b2494..9cd8cda1ec 100644 --- a/src/mbgl/style/style.cpp +++ b/src/mbgl/style/style.cpp @@ -583,8 +583,8 @@ RenderData Style::getRenderData(MapDebugOptions debugOptions, float angle) const } std::vector<std::reference_wrapper<RenderTile>> sortedTilesForInsertion; - for (auto tileIt = sortedTiles.begin(); tileIt != sortedTiles.end(); ++tileIt) { - auto& tile = tileIt->get(); + for (auto& sortedTile : sortedTiles) { + auto& tile = sortedTile.get(); if (!tile.tile.isRenderable()) { continue; } |