mirror of
https://github.com/mod-playerbots/azerothcore-wotlk.git
synced 2026-01-22 05:06:24 +00:00
refactor(Core/Common): restyle common lib with astyle (#3461)
This commit is contained in:
@@ -17,18 +17,18 @@
|
||||
namespace ByteConverter
|
||||
{
|
||||
template<size_t T>
|
||||
inline void convert(char *val)
|
||||
inline void convert(char* val)
|
||||
{
|
||||
std::swap(*val, *(val + T - 1));
|
||||
convert<T - 2>(val + 1);
|
||||
convert < T - 2 > (val + 1);
|
||||
}
|
||||
|
||||
template<> inline void convert<0>(char *) { }
|
||||
template<> inline void convert<1>(char *) { } // ignore central byte
|
||||
template<> inline void convert<0>(char*) { }
|
||||
template<> inline void convert<1>(char*) { } // ignore central byte
|
||||
|
||||
template<typename T> inline void apply(T *val)
|
||||
template<typename T> inline void apply(T* val)
|
||||
{
|
||||
convert<sizeof(T)>((char *)(val));
|
||||
convert<sizeof(T)>((char*)(val));
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user