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 | 2cd06fb0e3f67b83b8520d818dd7a47b4cfadd41 (patch) | |
tree | fa6b9237f83ec099fca0b9f347e166c597be8eed /include | |
parent | 4cdc067636ca7f9201faddf1410b6e781dd7c4c5 (diff) | |
download | qtlocation-mapboxgl-2cd06fb0e3f67b83b8520d818dd7a47b4cfadd41.tar.gz |
[core] Fix readability-const-return-type errors in header files
As reported by clang-tidy-8.
Diffstat (limited to 'include')
-rw-r--r-- | include/mbgl/style/position.hpp | 8 |
1 files changed, 2 insertions, 6 deletions
diff --git a/include/mbgl/style/position.hpp b/include/mbgl/style/position.hpp index 3be8d1c55e..cf8db73cd2 100644 --- a/include/mbgl/style/position.hpp +++ b/include/mbgl/style/position.hpp @@ -23,13 +23,9 @@ public: return !(lhs == rhs); } - const std::array<float, 3> getCartesian() const { - return { { x, y, z } }; - }; + std::array<float, 3> getCartesian() const { return {{x, y, z}}; }; - const std::array<float, 3> getSpherical() const { - return { { radial, azimuthal, polar } }; - }; + std::array<float, 3> getSpherical() const { return {{radial, azimuthal, polar}}; }; void set(std::array<float, 3>& position_) { radial = position_[0]; |