summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--src/mbgl/layout/symbol_layout.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/mbgl/layout/symbol_layout.cpp b/src/mbgl/layout/symbol_layout.cpp
index 499f1113cc..4aedd224a2 100644
--- a/src/mbgl/layout/symbol_layout.cpp
+++ b/src/mbgl/layout/symbol_layout.cpp
@@ -680,7 +680,7 @@ bool SymbolLayout::anchorIsTooClose(const std::u16string& text, const float repe
if (compareText.find(text) == compareText.end()) {
compareText.emplace(text, Anchors());
} else {
- auto otherAnchors = compareText.find(text)->second;
+ const auto& otherAnchors = compareText.find(text)->second;
for (const Anchor& otherAnchor : otherAnchors) {
if (util::dist<float>(anchor.point, otherAnchor.point) < repeatDistance) {
return true;