Fix -Wignored-qualifiers warning
This commit is contained in:
parent
75a5ccad2a
commit
c5f7b36df1
|
|
@ -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>
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -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>>();
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue