Apply style fix pt4

This commit is contained in:
Antz 2020-01-14 10:26:15 +00:00
parent d93dbd95fe
commit 4727d8846f
87 changed files with 710 additions and 0 deletions

View file

@ -365,7 +365,9 @@ char* DB2FileLoader::AutoProduceStringsArrayHolders(const char* format, char* da
// dbc strings expected to have at least empty string
for(size_t i = 0; i < stringHoldersPoolSize / sizeof(char*); ++i)
{
((char const**)stringHoldersPool)[i] = nullStr;
}
uint32 offset=0;

View file

@ -307,7 +307,9 @@ char* DBCFileLoader::AutoProduceStringsArrayHolders(const char* format, char* da
// dbc strings expected to have at least empty string
for(size_t i = 0; i < stringHoldersPoolSize / sizeof(char*); ++i)
{
((char const**)stringHoldersPool)[i] = nullStr;
}
uint32 offset=0;

View file

@ -34,7 +34,9 @@ QueryResultMysql::QueryResultMysql(MYSQL_RES* result, MYSQL_FIELD* fields, uint6
MANGOS_ASSERT(mCurrentRow);
for (uint32 i = 0; i < mFieldCount; ++i)
{
mCurrentRow[i].SetType(ConvertNativeType(fields[i].type));
}
}
QueryResultMysql::~QueryResultMysql()

View file

@ -54,7 +54,9 @@ void BitStream::WriteBit(uint32 bit)
template <typename T> void BitStream::WriteBits(T value, size_t bits)
{
for (int32 i = bits-1; i >= 0; --i)
{
WriteBit((value >> i) & 1);
}
}
bool BitStream::Empty()
@ -69,7 +71,9 @@ void BitStream::Reverse()
Clear();
for(uint32 i = len; i > 0; --i)
{
WriteBit(b[i-1]);
}
}
void BitStream::Print()
@ -77,7 +81,9 @@ void BitStream::Print()
std::stringstream ss;
ss << "BitStream: ";
for (uint32 i = 0; i < GetLength(); ++i)
{
ss << uint32(GetBit(i)) << " ";
}
sLog.outDebug("%s", ss.str().c_str());
}

View file

@ -244,7 +244,9 @@ class ByteBuffer
template <typename T> void WriteBits(T value, size_t bits)
{
for (int32 i = bits-1; i >= 0; --i)
{
WriteBit((value >> i) & 1);
}
}
uint32 ReadBits(size_t bits)
@ -261,7 +263,9 @@ class ByteBuffer
{
BitStream b;
for (uint32 i = 0; i < len; ++i)
{
b.WriteBit(ReadBit());
}
return b;
}
@ -270,7 +274,9 @@ class ByteBuffer
uint8* guidByte = ((uint8*)&guid);
for (uint8 i = 0; i < maskCount; i++)
{
WriteBit(guidByte[maskOrder[i + maskPos]]);
}
}
void WriteGuidBytes(uint64 guid, uint8* byteOrder, uint8 byteCount, uint8 bytePos)
@ -1081,7 +1087,9 @@ class ByteBuffer
{
sLog.outDebug("STORAGE_SIZE: %lu", (unsigned long)size() );
for (uint32 i = 0; i < size(); ++i)
{
sLog.outDebug("%u - ", read<uint8>(i) );
}
sLog.outDebug(" ");
}
@ -1089,7 +1097,9 @@ class ByteBuffer
{
sLog.outDebug("STORAGE_SIZE: %lu", (unsigned long)size() );
for (uint32 i = 0; i < size(); ++i)
{
sLog.outDebug("%c", read<uint8>(i) );
}
sLog.outDebug(" ");
}