[core] Fix readability-const-return-type errors in header files

As reported by clang-tidy-8.
This commit is contained in:
Thiago Marcos P. Santos
2020-03-27 18:30:35 +02:00
parent 4cdc067636
commit 2cd06fb0e3

View File

@@ -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];