diff --git a/etk/math/Matrix.h b/etk/math/Matrix.h index 9d4f184..3b956cd 100644 --- a/etk/math/Matrix.h +++ b/etk/math/Matrix.h @@ -402,7 +402,7 @@ namespace etk { * @return The absolute max value. */ T maxDifference(const Matrix& _input) { - if (m_size != _input.m_size) + if (m_size != _input.m_size) { TK_WARNING("better to do with same size Matrix"); } T max = 0; diff --git a/etk/math/Vector2D.h b/etk/math/Vector2D.h index bf3ebd7..96208ee 100644 --- a/etk/math/Vector2D.h +++ b/etk/math/Vector2D.h @@ -400,11 +400,11 @@ namespace etk { std::ostream& operator <<(std::ostream& _os, const etk::Vector2D& _obj); }; // To siplify the writing of the code ==> this permit to have the same name with the glsl language... -typedef etk::Vector2D vec2; -typedef etk::Vector2D ivec2; +using vec2 = etk::Vector2D; +using ivec2 = etk::Vector2D; // not compatible with glsl ... but it is better to have a same writing -typedef etk::Vector2D uivec2; -typedef etk::Vector2D bvec2; +using uivec2 = etk::Vector2D; +using bvec2 = etk::Vector2D; inline vec2 vec2ClipInt32(const vec2& _val) { return vec2((int32_t)_val.x(), (int32_t)_val.y()); diff --git a/etk/types.h b/etk/types.h index 16e0d61..569e00c 100644 --- a/etk/types.h +++ b/etk/types.h @@ -41,10 +41,6 @@ #endif #endif -namespace std17 = std; -namespace std14 = std; -namespace std11 = std; - #include #ifndef ETK_BUILD_LINEARMATH