Browse Source

Fixed Clang warnings

Christophe Riccio 11 years ago
parent
commit
18b8e2fd4a
2 changed files with 8 additions and 8 deletions
  1. 3 3
      glm/gtx/matrix_transform_2d.hpp
  2. 5 5
      glm/gtx/matrix_transform_2d.inl

+ 3 - 3
glm/gtx/matrix_transform_2d.hpp

@@ -67,7 +67,7 @@ namespace glm
 	template <typename T, precision P> 
 	GLM_FUNC_QUALIFIER tmat3x3<T, P> rotate(
 		tmat3x3<T, P> 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 <typename T, precision P> 
 	GLM_FUNC_QUALIFIER tmat3x3<T, P> shearX(
 		tmat3x3<T, P> 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 <typename T, precision P> 
 	GLM_FUNC_QUALIFIER tmat3x3<T, P> shearY(
 		tmat3x3<T, P> const & m,
-		T const & x);
+		T x);
 
 	/// @}
 }//namespace glm

+ 5 - 5
glm/gtx/matrix_transform_2d.inl

@@ -45,7 +45,7 @@ namespace glm
 	template <typename T, precision P> 
 	GLM_FUNC_QUALIFIER tmat3x3<T, P> rotate(
 		tmat3x3<T, P> const & m,
-		T const & angle)
+		T angle)
 	{
 		T const a = angle;
 		T const c = cos(a);
@@ -73,9 +73,9 @@ namespace glm
 	template <typename T, precision P> 
 	GLM_FUNC_QUALIFIER tmat3x3<T, P> shearX(
 		tmat3x3<T, P> const & m,
-		T const & y)
+		T y)
 	{
-		tmat3x3<T, P> Result();
+		tmat3x3<T, P> Result(1);
 		Result[0][1] = y;
 		return m * Result;
 	}
@@ -83,9 +83,9 @@ namespace glm
 	template <typename T, precision P> 
 	GLM_FUNC_QUALIFIER tmat3x3<T, P> shearY(
 		tmat3x3<T, P> const & m,
-		T const & x)
+		T x)
 	{
-		tmat3x3<T, P> Result();
+		tmat3x3<T, P> Result(1);
 		Result[1][0] = x;
 		return m * Result;
 	}