From 18b8e2fd4a70583c41aec88eaa6b97f55430870f Mon Sep 17 00:00:00 2001 From: Christophe Riccio Date: Sat, 15 Nov 2014 23:03:53 +0100 Subject: [PATCH] Fixed Clang warnings --- glm/gtx/matrix_transform_2d.hpp | 6 +++--- glm/gtx/matrix_transform_2d.inl | 10 +++++----- 2 files changed, 8 insertions(+), 8 deletions(-) diff --git a/glm/gtx/matrix_transform_2d.hpp b/glm/gtx/matrix_transform_2d.hpp index cb1acecf..002e98ef 100644 --- a/glm/gtx/matrix_transform_2d.hpp +++ b/glm/gtx/matrix_transform_2d.hpp @@ -67,7 +67,7 @@ namespace glm template GLM_FUNC_QUALIFIER tmat3x3 rotate( tmat3x3 const & m, - T const & angle); + T angle); /// Builds a scale 3 * 3 matrix created from a vector of 2 components. /// @@ -85,7 +85,7 @@ namespace glm template GLM_FUNC_QUALIFIER tmat3x3 shearX( tmat3x3 const & m, - T const & y); + T y); /// Builds a vertical (parallel to the y axis) shear 3 * 3 matrix. /// @@ -94,7 +94,7 @@ namespace glm template GLM_FUNC_QUALIFIER tmat3x3 shearY( tmat3x3 const & m, - T const & x); + T x); /// @} }//namespace glm diff --git a/glm/gtx/matrix_transform_2d.inl b/glm/gtx/matrix_transform_2d.inl index 6bacd9c3..5de01c0c 100644 --- a/glm/gtx/matrix_transform_2d.inl +++ b/glm/gtx/matrix_transform_2d.inl @@ -45,7 +45,7 @@ namespace glm template GLM_FUNC_QUALIFIER tmat3x3 rotate( tmat3x3 const & m, - T const & angle) + T angle) { T const a = angle; T const c = cos(a); @@ -73,9 +73,9 @@ namespace glm template GLM_FUNC_QUALIFIER tmat3x3 shearX( tmat3x3 const & m, - T const & y) + T y) { - tmat3x3 Result(); + tmat3x3 Result(1); Result[0][1] = y; return m * Result; } @@ -83,9 +83,9 @@ namespace glm template GLM_FUNC_QUALIFIER tmat3x3 shearY( tmat3x3 const & m, - T const & x) + T x) { - tmat3x3 Result(); + tmat3x3 Result(1); Result[1][0] = x; return m * Result; }