mirror of
https://github.com/mangosfour/server.git
synced 2025-12-16 04:37:00 +00:00
[11590] Cleanups for barGoLink
* Rename barGoLink -> BarGoLink as expected by mangos code style * Add uint32/uint6 constructor versions for BarGoLink, and remove lot casts required before for BarGoLink use
This commit is contained in:
parent
6b8f9fe03d
commit
c870ef324d
26 changed files with 430 additions and 410 deletions
|
|
@ -61,7 +61,7 @@ void CharacterDatabaseCleaner::CheckUnique(const char* column, const char* table
|
|||
|
||||
bool found = false;
|
||||
std::ostringstream ss;
|
||||
barGoLink bar( (int)result->GetRowCount() );
|
||||
BarGoLink bar(result->GetRowCount());
|
||||
do
|
||||
{
|
||||
bar.step();
|
||||
|
|
@ -70,9 +70,9 @@ void CharacterDatabaseCleaner::CheckUnique(const char* column, const char* table
|
|||
|
||||
uint32 id = fields[0].GetUInt32();
|
||||
|
||||
if(!check(id))
|
||||
if (!check(id))
|
||||
{
|
||||
if(!found)
|
||||
if (!found)
|
||||
{
|
||||
ss << "DELETE FROM " << table << " WHERE " << column << " IN (";
|
||||
found = true;
|
||||
|
|
@ -82,7 +82,7 @@ void CharacterDatabaseCleaner::CheckUnique(const char* column, const char* table
|
|||
ss << id;
|
||||
}
|
||||
}
|
||||
while( result->NextRow() );
|
||||
while (result->NextRow());
|
||||
delete result;
|
||||
|
||||
if (found)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue