summaryrefslogtreecommitdiff
path: root/src/mbgl/text/glyph_manager.cpp
diff options
context:
space:
mode:
authorThiago Marcos P. Santos <tmpsantos@gmail.com>2019-08-19 11:44:33 +0300
committerThiago Marcos P. Santos <tmpsantos@gmail.com>2019-08-19 13:37:23 +0300
commit6dfe0e60cad9e7a1e8838374fa5d0fd48ab30782 (patch)
treedf3744c7115bbf5c9d19067b1565e812b13b2233 /src/mbgl/text/glyph_manager.cpp
parentbf34fb01900cb513dcc0fa5728f06504b62a7e26 (diff)
downloadqtlocation-mapboxgl-6dfe0e60cad9e7a1e8838374fa5d0fd48ab30782.tar.gz
[core] Fix use after std::move detected by clang-tidy
Detected by the bot being setup at https://github.com/mapbox/mapbox-gl-native/pull/15385.
Diffstat (limited to 'src/mbgl/text/glyph_manager.cpp')
-rw-r--r--src/mbgl/text/glyph_manager.cpp5
1 files changed, 3 insertions, 2 deletions
diff --git a/src/mbgl/text/glyph_manager.cpp b/src/mbgl/text/glyph_manager.cpp
index daa142e38f..990e8be945 100644
--- a/src/mbgl/text/glyph_manager.cpp
+++ b/src/mbgl/text/glyph_manager.cpp
@@ -98,8 +98,9 @@ void GlyphManager::processResponse(const Response& res, const FontStack& fontSta
}
for (auto& glyph : glyphs) {
- entry.glyphs.erase(glyph.id);
- entry.glyphs.emplace(glyph.id, makeMutable<Glyph>(std::move(glyph)));
+ auto id = glyph.id;
+ entry.glyphs.erase(id);
+ entry.glyphs.emplace(id, makeMutable<Glyph>(std::move(glyph)));
}
}