diff options
| author | Spp <spp@jorge.gr> | 2013-01-14 11:12:58 +0100 |
|---|---|---|
| committer | Spp <spp@jorge.gr> | 2013-01-14 11:12:58 +0100 |
| commit | 0d5cb6af755199f716a2de3207e6df91787f98b5 (patch) | |
| tree | ba41d4bd98872ef4137a7f57b60f5413da2d6d9f /src/server/shared | |
| parent | d75222feca1b0ffc5f9b10df1fd442eedab95a16 (diff) | |
Core/Misc: Apply codestyle to multiple files (II)
Diffstat (limited to 'src/server/shared')
| -rw-r--r-- | src/server/shared/DataStores/DB2FileLoader.cpp | 12 | ||||
| -rw-r--r-- | src/server/shared/Packets/ByteBuffer.h | 2 |
2 files changed, 7 insertions, 7 deletions
diff --git a/src/server/shared/DataStores/DB2FileLoader.cpp b/src/server/shared/DataStores/DB2FileLoader.cpp index 14170845211..0de3b94b5d4 100644 --- a/src/server/shared/DataStores/DB2FileLoader.cpp +++ b/src/server/shared/DataStores/DB2FileLoader.cpp @@ -37,7 +37,7 @@ bool DB2FileLoader::Load(const char *filename, const char *fmt) data=NULL; } - FILE * f = fopen(filename, "rb"); + FILE* f = fopen(filename, "rb"); if (!f) return false; @@ -193,7 +193,7 @@ uint32 DB2FileLoader::GetFormatRecordSize(const char * format, int32* index_pos) int32 i = -1; for (uint32 x=0; format[x]; ++x) { - switch(format[x]) + switch (format[x]) { case FT_FLOAT: case FT_INT: @@ -279,7 +279,7 @@ char* DB2FileLoader::AutoProduceData(const char* format, uint32& records, char** for (uint32 x = 0; x < fieldCount; x++) { - switch(format[x]) + switch (format[x]) { case FT_FLOAT: *((float*)(&dataTable[offset])) = getRecord(y).getFloat(x); @@ -332,8 +332,8 @@ char* DB2FileLoader::AutoProduceStringsArrayHolders(const char* format, char* da { uint32 stringFieldNum = 0; - for(uint32 x = 0; x < fieldCount; x++) - switch(format[x]) + for (uint32 x = 0; x < fieldCount; x++) + switch (format[x]) { case FT_FLOAT: case FT_IND: @@ -378,7 +378,7 @@ char* DB2FileLoader::AutoProduceStrings(const char* format, char* dataTable) for (uint32 y =0; y < recordCount; y++) { for (uint32 x = 0; x < fieldCount; x++) - switch(format[x]) + switch (format[x]) { case FT_FLOAT: case FT_IND: diff --git a/src/server/shared/Packets/ByteBuffer.h b/src/server/shared/Packets/ByteBuffer.h index 4b840e24953..68d86406faa 100644 --- a/src/server/shared/Packets/ByteBuffer.h +++ b/src/server/shared/Packets/ByteBuffer.h @@ -54,7 +54,7 @@ class ByteBufferPositionException : public ByteBufferException { ACE_Stack_Trace trace; - sLog->outError(LOG_FILTER_NETWORKIO, "Attempted to %s value with size: " SIZEFMTD " in ByteBuffer (pos: " SIZEFMTD " size: "SIZEFMTD")\n[Stack trace: %s]" , + sLog->outError(LOG_FILTER_NETWORKIO, "Attempted to %s value with size: " SIZEFMTD " in ByteBuffer (pos: " SIZEFMTD " size: "SIZEFMTD")\n[Stack trace: %s]", (_add ? "put" : "get"), ValueSize, Pos, Size, trace.c_str()); } |
