From 5d5c7b42849b60c775309f6eae997a69f423332b Mon Sep 17 00:00:00 2001 From: Lynix Date: Thu, 13 Oct 2016 04:48:19 +0200 Subject: [PATCH] PR-82: Fix indent --- include/Nazara/Math/Vector2.hpp | 5 +---- include/Nazara/Math/Vector2.inl | 35 ++++++++++++++--------------- include/Nazara/Math/Vector3.hpp | 5 +---- include/Nazara/Math/Vector3.inl | 36 ++++++++++++++---------------- include/Nazara/Math/Vector4.hpp | 5 +---- include/Nazara/Math/Vector4.inl | 39 +++++++++++++++------------------ 6 files changed, 54 insertions(+), 71 deletions(-) diff --git a/include/Nazara/Math/Vector2.hpp b/include/Nazara/Math/Vector2.hpp index d3e8be8c5..49890b06f 100644 --- a/include/Nazara/Math/Vector2.hpp +++ b/include/Nazara/Math/Vector2.hpp @@ -122,10 +122,7 @@ template Nz::Vector2 operator/(T scale, const Nz::Vector2& vec namespace std { - -template -struct hash>; - + template struct hash>; } #include diff --git a/include/Nazara/Math/Vector2.inl b/include/Nazara/Math/Vector2.inl index 19313c3e4..8ca023843 100644 --- a/include/Nazara/Math/Vector2.inl +++ b/include/Nazara/Math/Vector2.inl @@ -1059,28 +1059,25 @@ Nz::Vector2 operator/(T scale, const Nz::Vector2& vec) namespace std { - -template -struct hash> -{ - /*! - * \brief Specialisation of std to hash - * \return Result of the hash - * - * \param v Vector2 to hash - */ - - std::size_t operator()(const Nz::Vector2& v) const + template + struct hash> { - std::size_t seed {}; + /*! + * \brief Specialisation of std to hash + * \return Result of the hash + * + * \param v Vector2 to hash + */ + std::size_t operator()(const Nz::Vector2& v) const + { + std::size_t seed {}; - Nz::HashCombine(seed, v.x); - Nz::HashCombine(seed, v.y); - - return seed; - } -}; + Nz::HashCombine(seed, v.x); + Nz::HashCombine(seed, v.y); + return seed; + } + }; } #undef F diff --git a/include/Nazara/Math/Vector3.hpp b/include/Nazara/Math/Vector3.hpp index 2725fcc45..27681683f 100644 --- a/include/Nazara/Math/Vector3.hpp +++ b/include/Nazara/Math/Vector3.hpp @@ -144,10 +144,7 @@ template Nz::Vector3 operator/(T scale, const Nz::Vector3& vec namespace std { - -template -struct hash>; - + template struct hash>; } #include diff --git a/include/Nazara/Math/Vector3.inl b/include/Nazara/Math/Vector3.inl index 0a67aea74..555286024 100644 --- a/include/Nazara/Math/Vector3.inl +++ b/include/Nazara/Math/Vector3.inl @@ -1349,29 +1349,27 @@ Nz::Vector3 operator/(T scale, const Nz::Vector3& vec) namespace std { - -template -struct hash> -{ - /*! - * \brief Specialisation of std to hash - * \return Result of the hash - * - * \param v Vector3 to hash - */ - - std::size_t operator()(const Nz::Vector3& v) const + template + struct hash> { - std::size_t seed {}; + /*! + * \brief Specialisation of std to hash + * \return Result of the hash + * + * \param v Vector3 to hash + */ - Nz::HashCombine(seed, v.x); - Nz::HashCombine(seed, v.y); - Nz::HashCombine(seed, v.z); + std::size_t operator()(const Nz::Vector3& v) const + { + std::size_t seed {}; - return seed; - } -}; + Nz::HashCombine(seed, v.x); + Nz::HashCombine(seed, v.y); + Nz::HashCombine(seed, v.z); + return seed; + } + }; } #undef F diff --git a/include/Nazara/Math/Vector4.hpp b/include/Nazara/Math/Vector4.hpp index 8ac50c8cb..d878c2ea5 100644 --- a/include/Nazara/Math/Vector4.hpp +++ b/include/Nazara/Math/Vector4.hpp @@ -120,10 +120,7 @@ template Nz::Vector4 operator/(T scale, const Nz::Vector4& vec namespace std { - -template -struct hash>; - + template struct hash>; } #include diff --git a/include/Nazara/Math/Vector4.inl b/include/Nazara/Math/Vector4.inl index 94b46872d..190d31b99 100644 --- a/include/Nazara/Math/Vector4.inl +++ b/include/Nazara/Math/Vector4.inl @@ -1122,30 +1122,27 @@ Nz::Vector4 operator/(T scale, const Nz::Vector4& vec) namespace std { - -template -struct hash> -{ - /*! - * \brief Specialisation of std to hash - * \return Result of the hash - * - * \param v Vector4 to hash - */ - - std::size_t operator()(const Nz::Vector4& v) const + template + struct hash> { - std::size_t seed {}; + /*! + * \brief Specialisation of std to hash + * \return Result of the hash + * + * \param v Vector4 to hash + */ + std::size_t operator()(const Nz::Vector4& v) const + { + std::size_t seed {}; - Nz::HashCombine(seed, v.x); - Nz::HashCombine(seed, v.y); - Nz::HashCombine(seed, v.z); - Nz::HashCombine(seed, v.w); - - return seed; - } -}; + Nz::HashCombine(seed, v.x); + Nz::HashCombine(seed, v.y); + Nz::HashCombine(seed, v.z); + Nz::HashCombine(seed, v.w); + return seed; + } + }; } #undef F