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:
@@ -162,7 +162,7 @@ namespace HACD
|
||||
inline Vec3<T>::Vec3() {}
|
||||
|
||||
template<typename T>
|
||||
inline const bool Colinear(const Vec3<T> & a, const Vec3<T> & b, const Vec3<T> & c)
|
||||
inline bool Colinear(const Vec3<T> & a, const Vec3<T> & b, const Vec3<T> & c)
|
||||
{
|
||||
return ((c.Z() - a.Z()) * (b.Y() - a.Y()) - (b.Z() - a.Z()) * (c.Y() - a.Y()) == 0.0 /*EPS*/) &&
|
||||
((b.Z() - a.Z()) * (c.X() - a.X()) - (b.X() - a.X()) * (c.Z() - a.Z()) == 0.0 /*EPS*/) &&
|
||||
@@ -175,4 +175,4 @@ namespace HACD
|
||||
return (a-d) * ((b-d) ^ (c-d));
|
||||
}
|
||||
}
|
||||
#endif //HACD_VECTOR_INL
|
||||
#endif //HACD_VECTOR_INL
|
||||
|
||||
Reference in New Issue
Block a user