Remove useless const qualifiers from returns

Remove const qualifiers applied to POD return values, as these are
meaningless and ignored by the compiler and are therefore potentially
misleading. (They also trip -Wignored-qualifiers.)
This commit is contained in:
Matthew Woehlke
2016-09-16 11:01:03 -04:00
parent 79d24db60f
commit 7e1d72dfe4
4 changed files with 15 additions and 15 deletions

View File

@@ -58,7 +58,7 @@ namespace HACD
T m_data[3];
};
template<typename T>
const bool Colinear(const Vec3<T> & a, const Vec3<T> & b, const Vec3<T> & c);
bool Colinear(const Vec3<T> & a, const Vec3<T> & b, const Vec3<T> & c);
template<typename T>
const T Volume(const Vec3<T> & a, const Vec3<T> & b, const Vec3<T> & c, const Vec3<T> & d);