diff options
author | Thiago Marcos P. Santos <tmpsantos@gmail.com> | 2020-03-27 18:30:35 +0200 |
---|---|---|
committer | Thiago Marcos P. Santos <tmpsantos@gmail.com> | 2020-04-17 13:36:50 +0300 |
commit | 47b8fc703b90404b56ba51a5013cf2e42674992d (patch) | |
tree | 6159451104f1aed3657c50bbe69298525ea51e72 /include/mbgl/util | |
parent | 6559fa82a7905fd7bfe702f99bf81f07ca39299f (diff) | |
download | qtlocation-mapboxgl-47b8fc703b90404b56ba51a5013cf2e42674992d.tar.gz |
[core] Fix readability-container-size-empty errors in header files
As reported by clang-tidy-8.
Diffstat (limited to 'include/mbgl/util')
-rw-r--r-- | include/mbgl/util/interpolate.hpp | 2 |
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>()); |