diff --git a/include/mbgl/style/position.hpp b/include/mbgl/style/position.hpp index 3be8d1c55..cf8db73cd 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];