summaryrefslogtreecommitdiff
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-04-17 13:36:50 +0300
commit47b8fc703b90404b56ba51a5013cf2e42674992d (patch)
tree6159451104f1aed3657c50bbe69298525ea51e72
parent6559fa82a7905fd7bfe702f99bf81f07ca39299f (diff)
downloadqtlocation-mapboxgl-47b8fc703b90404b56ba51a5013cf2e42674992d.tar.gz
[core] Fix readability-container-size-empty errors in header files
As reported by clang-tidy-8.
-rw-r--r--include/mbgl/util/interpolate.hpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/include/mbgl/util/interpolate.hpp b/include/mbgl/util/interpolate.hpp
index 566f2b0a6b..d1622dffb6 100644
--- a/include/mbgl/util/interpolate.hpp
+++ b/include/mbgl/util/interpolate.hpp
@@ -64,7 +64,7 @@ struct Interpolator<std::vector<style::expression::Value>> {
const std::vector<style::expression::Value>& b,
const double t) const {
assert(a.size() == b.size());
- if (a.size() == 0) return {};
+ if (a.empty()) return {};
std::vector<style::expression::Value> result;
for (std::size_t i = 0; i < a.size(); i++) {
assert(a[i].template is<double>());