summaryrefslogtreecommitdiff
path: root/src/mbgl/layout
diff options
context:
space:
mode:
authorThiago Marcos P. Santos <tmpsantos@gmail.com>2020-03-27 18:30:35 +0200
committerThiago Marcos P. Santos <tmpsantos@gmail.com>2020-03-30 23:37:44 +0300
commit94d1c10727ceb2c0e245aeb3c255102da185440c (patch)
tree2f93534ca3dac24b3d3f566faa0b11fbf72177b9 /src/mbgl/layout
parent2ca3fc24a1eedda8fb6fed1fa56033717376e0d7 (diff)
downloadqtlocation-mapboxgl-94d1c10727ceb2c0e245aeb3c255102da185440c.tar.gz
[core] Fix readability-* errors
As reported by clang-tidy-8.
Diffstat (limited to 'src/mbgl/layout')
-rw-r--r--src/mbgl/layout/symbol_layout.cpp2
-rw-r--r--src/mbgl/layout/symbol_projection.hpp5
2 files changed, 4 insertions, 3 deletions
diff --git a/src/mbgl/layout/symbol_layout.cpp b/src/mbgl/layout/symbol_layout.cpp
index 374ab3b659..0a1c3c4fbd 100644
--- a/src/mbgl/layout/symbol_layout.cpp
+++ b/src/mbgl/layout/symbol_layout.cpp
@@ -210,7 +210,7 @@ SymbolLayout::SymbolLayout(const BucketParameters& parameters,
}
bool SymbolLayout::hasDependencies() const {
- return features.size() != 0;
+ return !features.empty();
}
bool SymbolLayout::hasSymbolInstances() const {
diff --git a/src/mbgl/layout/symbol_projection.hpp b/src/mbgl/layout/symbol_projection.hpp
index b88ff0a56f..d9c80df418 100644
--- a/src/mbgl/layout/symbol_projection.hpp
+++ b/src/mbgl/layout/symbol_projection.hpp
@@ -58,9 +58,10 @@ namespace mbgl {
const mat4& labelPlaneMatrix,
const bool returnTileDistance);
- void hideGlyphs(std::size_t numGlyphs, gfx::VertexVector<gfx::Vertex<SymbolDynamicLayoutAttributes>>& dynamicVertices);
+ void hideGlyphs(std::size_t numGlyphs,
+ gfx::VertexVector<gfx::Vertex<SymbolDynamicLayoutAttributes>>& dynamicVertexArray);
void addDynamicAttributes(const Point<float>& anchorPoint,
const float angle,
- gfx::VertexVector<gfx::Vertex<SymbolDynamicLayoutAttributes>>& dynamicVertices);
+ gfx::VertexVector<gfx::Vertex<SymbolDynamicLayoutAttributes>>& dynamicVertexArray);
} // end namespace mbgl