diff options
| author | Spp <spp@jorge.gr> | 2011-09-29 12:43:05 +0200 |
|---|---|---|
| committer | Spp <spp@jorge.gr> | 2011-09-29 12:43:05 +0200 |
| commit | b16d2245bbd374805d15cdca585e8b42bf139605 (patch) | |
| tree | b7b63c567112e1999a2566611363cf5e83adb1be /src/server/shared/DataStores | |
| parent | 8b820baa7324d41df264f48e344d62584bff70f8 (diff) | |
Cosmetic: Multiple cosmetic changes
- Added missing space to 'if', 'for', 'while' and 'switch' when it's followed by '('
- Added missing space after a comma and remove space before comma (with some exceptions)
- Remove trailing spaces
- Convert tab to spaces
Note: Only affects files with extension "cpp" and "h" under /src/server
Diffstat (limited to 'src/server/shared/DataStores')
| -rwxr-xr-x | src/server/shared/DataStores/DBCStore.h | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/src/server/shared/DataStores/DBCStore.h b/src/server/shared/DataStores/DBCStore.h index fbf31bb092e..b580048ed45 100755 --- a/src/server/shared/DataStores/DBCStore.h +++ b/src/server/shared/DataStores/DBCStore.h @@ -143,7 +143,7 @@ class DBCStorage if (!fields) fields = result->Fetch(); - if(sql->indexPos >= 0) + if (sql->indexPos >= 0) { uint32 id = fields[sql->sqlIndexPos].GetUInt32(); if (indexTable.asT[id]) @@ -162,7 +162,7 @@ class DBCStorage { if ((*sql->formatString)[columnNumber] == FT_SQL_ABSENT) { - switch(fmt[columnNumber]) + switch (fmt[columnNumber]) { case FT_FLOAT: *((float*)(&sqlDataTable[offset]))= 0.0f; @@ -187,7 +187,7 @@ class DBCStorage else if ((*sql->formatString)[columnNumber] == FT_SQL_PRESENT) { bool validSqlColumn = true; - switch(fmt[columnNumber]) + switch (fmt[columnNumber]) { case FT_FLOAT: *((float*)(&sqlDataTable[offset]))=fields[sqlColumnNumber].GetFloat(); @@ -243,7 +243,7 @@ class DBCStorage DBCFileLoader dbc; // Check if load was successful, only then continue - if(!dbc.Load(fn, fmt)) + if (!dbc.Load(fn, fmt)) return false; stringPoolList.push_back(dbc.AutoProduceStrings(fmt, (char*)dataTable)); @@ -261,7 +261,7 @@ class DBCStorage delete[] ((char*)dataTable); dataTable = NULL; - while(!stringPoolList.empty()) + while (!stringPoolList.empty()) { delete[] stringPoolList.front(); stringPoolList.pop_front(); |
