diff options
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]; |