Fix -Wignored-qualifiers warning

This commit is contained in:
Lynix 2017-10-10 20:56:54 +02:00
parent 75a5ccad2a
commit c5f7b36df1
2 changed files with 2 additions and 2 deletions

View File

@ -67,7 +67,7 @@ namespace Nz
NAZARA_UTILITY_API void TransformVertices(VertexPointers vertexPointers, unsigned int vertexCount, const Matrix4f& matrix); NAZARA_UTILITY_API void TransformVertices(VertexPointers vertexPointers, unsigned int vertexCount, const Matrix4f& matrix);
template<typename T> constexpr ComponentType ComponentTypeId(); template<typename T> constexpr ComponentType ComponentTypeId();
template<typename T> constexpr const ComponentType GetComponentTypeOf(); template<typename T> constexpr ComponentType GetComponentTypeOf();
} }
#include <Nazara/Utility/Algorithm.inl> #include <Nazara/Utility/Algorithm.inl>

View File

@ -36,7 +36,7 @@ namespace Nz
template<> constexpr ComponentType ComponentTypeId<Quaternionf>() { return ComponentType_Quaternion; } template<> constexpr ComponentType ComponentTypeId<Quaternionf>() { return ComponentType_Quaternion; }
template<typename T> template<typename T>
constexpr const ComponentType GetComponentTypeOf() constexpr ComponentType GetComponentTypeOf()
{ {
return ComponentTypeId<std::decay_t<T>>(); return ComponentTypeId<std::decay_t<T>>();
} }