Fix -Wignored-qualifiers warning

This commit is contained in:
Lynix 2017-10-10 20:56:54 +02:00
parent 85aa01a562
commit eb6f23d53c
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);
template<typename T> constexpr ComponentType ComponentTypeId();
template<typename T> constexpr const ComponentType GetComponentTypeOf();
template<typename T> constexpr ComponentType GetComponentTypeOf();
}
#include <Nazara/Utility/Algorithm.inl>

View File

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