From 2cd06fb0e3f67b83b8520d818dd7a47b4cfadd41 Mon Sep 17 00:00:00 2001 From: "Thiago Marcos P. Santos" Date: Fri, 27 Mar 2020 18:30:35 +0200 Subject: [core] Fix readability-const-return-type errors in header files As reported by clang-tidy-8. --- include/mbgl/style/position.hpp | 8 ++------ 1 file 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 getCartesian() const { - return { { x, y, z } }; - }; + std::array getCartesian() const { return {{x, y, z}}; }; - const std::array getSpherical() const { - return { { radial, azimuthal, polar } }; - }; + std::array getSpherical() const { return {{radial, azimuthal, polar}}; }; void set(std::array& position_) { radial = position_[0]; -- cgit v1.2.1