summaryrefslogtreecommitdiff
path: root/src/mbgl/layout/symbol_layout.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/layout/symbol_layout.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/layout/symbol_layout.cpp')
-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 dbf209b414..9459dcb716 100644
--- a/src/mbgl/layout/symbol_layout.cpp
+++ b/src/mbgl/layout/symbol_layout.cpp
@@ -366,7 +366,7 @@ void SymbolLayout::prepareSymbols(const GlyphMap& glyphMap, const GlyphPositions
Shaping shaping = applyShaping(*feature.formattedText, WritingModeType::Horizontal, SymbolAnchorType::Center, justification);
if (shaping) {
shapingForJustification = std::move(shaping);
- if (shaping.lineCount == 1u) {
+ if (shapingForJustification.lineCount == 1u) {
shapedTextOrientations.singleLine = true;
break;
}