From c5f7b36df189b98f0aca186047b76abc3eedd0a4 Mon Sep 17 00:00:00 2001 From: Lynix Date: Tue, 10 Oct 2017 20:56:54 +0200 Subject: [PATCH] Fix -Wignored-qualifiers warning --- include/Nazara/Utility/Algorithm.hpp | 2 +- include/Nazara/Utility/Algorithm.inl | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/include/Nazara/Utility/Algorithm.hpp b/include/Nazara/Utility/Algorithm.hpp index aadec8aaa..9c275021d 100644 --- a/include/Nazara/Utility/Algorithm.hpp +++ b/include/Nazara/Utility/Algorithm.hpp @@ -67,7 +67,7 @@ namespace Nz NAZARA_UTILITY_API void TransformVertices(VertexPointers vertexPointers, unsigned int vertexCount, const Matrix4f& matrix); template constexpr ComponentType ComponentTypeId(); - template constexpr const ComponentType GetComponentTypeOf(); + template constexpr ComponentType GetComponentTypeOf(); } #include diff --git a/include/Nazara/Utility/Algorithm.inl b/include/Nazara/Utility/Algorithm.inl index 61bdb9e77..cc0a4fdc7 100644 --- a/include/Nazara/Utility/Algorithm.inl +++ b/include/Nazara/Utility/Algorithm.inl @@ -36,7 +36,7 @@ namespace Nz template<> constexpr ComponentType ComponentTypeId() { return ComponentType_Quaternion; } template - constexpr const ComponentType GetComponentTypeOf() + constexpr ComponentType GetComponentTypeOf() { return ComponentTypeId>(); }