diff options
-rw-r--r-- | src/mongo/db/exec/geo_near.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/mongo/db/exec/geo_near.cpp b/src/mongo/db/exec/geo_near.cpp index 4a960f88858..2d3f1559b43 100644 --- a/src/mongo/db/exec/geo_near.cpp +++ b/src/mongo/db/exec/geo_near.cpp @@ -918,7 +918,7 @@ std::unique_ptr<NearStage::CoveredInterval> GeoNear2DSphereStage::nextInterval( invariant(cover.empty()); S2CellUnion diffUnion; diffUnion.GetDifference(&coverUnion, &_scannedCells); - for (auto cellId : diffUnion.cell_ids()) { + for (const auto& cellId : diffUnion.cell_ids()) { if (region->MayIntersect(S2Cell(cellId))) { cover.push_back(cellId); } |