PR-82: Fix indent
This commit is contained in:
parent
5ea3eab8fc
commit
5d5c7b4284
|
|
@ -122,10 +122,7 @@ template<typename T> Nz::Vector2<T> operator/(T scale, const Nz::Vector2<T>& vec
|
||||||
|
|
||||||
namespace std
|
namespace std
|
||||||
{
|
{
|
||||||
|
template<class T> struct hash<Nz::Vector2<T>>;
|
||||||
template<class T>
|
|
||||||
struct hash<Nz::Vector2<T>>;
|
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
#include <Nazara/Math/Vector2.inl>
|
#include <Nazara/Math/Vector2.inl>
|
||||||
|
|
|
||||||
|
|
@ -1059,28 +1059,25 @@ Nz::Vector2<T> operator/(T scale, const Nz::Vector2<T>& vec)
|
||||||
|
|
||||||
namespace std
|
namespace std
|
||||||
{
|
{
|
||||||
|
template<class T>
|
||||||
template<class T>
|
struct hash<Nz::Vector2<T>>
|
||||||
struct hash<Nz::Vector2<T>>
|
|
||||||
{
|
|
||||||
/*!
|
|
||||||
* \brief Specialisation of std to hash
|
|
||||||
* \return Result of the hash
|
|
||||||
*
|
|
||||||
* \param v Vector2 to hash
|
|
||||||
*/
|
|
||||||
|
|
||||||
std::size_t operator()(const Nz::Vector2<T>& v) const
|
|
||||||
{
|
{
|
||||||
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<T>& v) const
|
||||||
|
{
|
||||||
|
std::size_t seed {};
|
||||||
|
|
||||||
Nz::HashCombine(seed, v.x);
|
Nz::HashCombine(seed, v.x);
|
||||||
Nz::HashCombine(seed, v.y);
|
Nz::HashCombine(seed, v.y);
|
||||||
|
|
||||||
return seed;
|
|
||||||
}
|
|
||||||
};
|
|
||||||
|
|
||||||
|
return seed;
|
||||||
|
}
|
||||||
|
};
|
||||||
}
|
}
|
||||||
|
|
||||||
#undef F
|
#undef F
|
||||||
|
|
|
||||||
|
|
@ -144,10 +144,7 @@ template<typename T> Nz::Vector3<T> operator/(T scale, const Nz::Vector3<T>& vec
|
||||||
|
|
||||||
namespace std
|
namespace std
|
||||||
{
|
{
|
||||||
|
template<class T> struct hash<Nz::Vector3<T>>;
|
||||||
template<class T>
|
|
||||||
struct hash<Nz::Vector3<T>>;
|
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
#include <Nazara/Math/Vector3.inl>
|
#include <Nazara/Math/Vector3.inl>
|
||||||
|
|
|
||||||
|
|
@ -1349,29 +1349,27 @@ Nz::Vector3<T> operator/(T scale, const Nz::Vector3<T>& vec)
|
||||||
|
|
||||||
namespace std
|
namespace std
|
||||||
{
|
{
|
||||||
|
template<class T>
|
||||||
template<class T>
|
struct hash<Nz::Vector3<T>>
|
||||||
struct hash<Nz::Vector3<T>>
|
|
||||||
{
|
|
||||||
/*!
|
|
||||||
* \brief Specialisation of std to hash
|
|
||||||
* \return Result of the hash
|
|
||||||
*
|
|
||||||
* \param v Vector3 to hash
|
|
||||||
*/
|
|
||||||
|
|
||||||
std::size_t operator()(const Nz::Vector3<T>& v) const
|
|
||||||
{
|
{
|
||||||
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);
|
std::size_t operator()(const Nz::Vector3<T>& v) const
|
||||||
Nz::HashCombine(seed, v.y);
|
{
|
||||||
Nz::HashCombine(seed, v.z);
|
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
|
#undef F
|
||||||
|
|
|
||||||
|
|
@ -120,10 +120,7 @@ template<typename T> Nz::Vector4<T> operator/(T scale, const Nz::Vector4<T>& vec
|
||||||
|
|
||||||
namespace std
|
namespace std
|
||||||
{
|
{
|
||||||
|
template<class T> struct hash<Nz::Vector4<T>>;
|
||||||
template<class T>
|
|
||||||
struct hash<Nz::Vector4<T>>;
|
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
#include <Nazara/Math/Vector4.inl>
|
#include <Nazara/Math/Vector4.inl>
|
||||||
|
|
|
||||||
|
|
@ -1122,30 +1122,27 @@ Nz::Vector4<T> operator/(T scale, const Nz::Vector4<T>& vec)
|
||||||
|
|
||||||
namespace std
|
namespace std
|
||||||
{
|
{
|
||||||
|
template<class T>
|
||||||
template<class T>
|
struct hash<Nz::Vector4<T>>
|
||||||
struct hash<Nz::Vector4<T>>
|
|
||||||
{
|
|
||||||
/*!
|
|
||||||
* \brief Specialisation of std to hash
|
|
||||||
* \return Result of the hash
|
|
||||||
*
|
|
||||||
* \param v Vector4 to hash
|
|
||||||
*/
|
|
||||||
|
|
||||||
std::size_t operator()(const Nz::Vector4<T>& v) const
|
|
||||||
{
|
{
|
||||||
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<T>& v) const
|
||||||
|
{
|
||||||
|
std::size_t seed {};
|
||||||
|
|
||||||
Nz::HashCombine(seed, v.x);
|
Nz::HashCombine(seed, v.x);
|
||||||
Nz::HashCombine(seed, v.y);
|
Nz::HashCombine(seed, v.y);
|
||||||
Nz::HashCombine(seed, v.z);
|
Nz::HashCombine(seed, v.z);
|
||||||
Nz::HashCombine(seed, v.w);
|
Nz::HashCombine(seed, v.w);
|
||||||
|
|
||||||
return seed;
|
|
||||||
}
|
|
||||||
};
|
|
||||||
|
|
||||||
|
return seed;
|
||||||
|
}
|
||||||
|
};
|
||||||
}
|
}
|
||||||
|
|
||||||
#undef F
|
#undef F
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue