diff options
author | Thiago Marcos P. Santos <tmpsantos@gmail.com> | 2020-03-20 12:38:09 +0200 |
---|---|---|
committer | Thiago Marcos P. Santos <tmpsantos@gmail.com> | 2020-03-23 12:09:09 +0200 |
commit | cedb7368f1a338b1c73946e557b2ccc1a978e7c6 (patch) | |
tree | 0ccd8df2747095c53c271807d2651ec06dd3d5ba /src/mbgl/text | |
parent | ef19a338666bbfcd2cdb218efd14e66754074d67 (diff) | |
download | qtlocation-mapboxgl-cedb7368f1a338b1c73946e557b2ccc1a978e7c6.tar.gz |
[core] Fix performance-for-range-copy errors
As reported by clang-tidy-8.
Diffstat (limited to 'src/mbgl/text')
-rw-r--r-- | src/mbgl/text/cross_tile_symbol_index.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/mbgl/text/cross_tile_symbol_index.cpp b/src/mbgl/text/cross_tile_symbol_index.cpp index f806c652e1..76697fb62a 100644 --- a/src/mbgl/text/cross_tile_symbol_index.cpp +++ b/src/mbgl/text/cross_tile_symbol_index.cpp @@ -185,7 +185,7 @@ bool CrossTileSymbolLayerIndex::addBucket(const OverscaledTileID& tileID, } void CrossTileSymbolLayerIndex::removeBucketCrossTileIDs(uint8_t zoom, const TileLayerIndex& removedBucket) { - for (auto key : removedBucket.indexedSymbolInstances) { + for (const auto& key : removedBucket.indexedSymbolInstances) { for (auto indexedSymbolInstance : key.second) { usedCrossTileIDs[zoom].erase(indexedSymbolInstance.crossTileID); } |