[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:
VladimirMangos 2011-06-03 11:46:48 +04:00
parent 6b8f9fe03d
commit c870ef324d
26 changed files with 430 additions and 410 deletions

View file

@ -702,7 +702,7 @@ void MapPersistentStateManager::_DelHelper(DatabaseType &db, const char *fields,
void MapPersistentStateManager::CleanupInstances()
{
barGoLink bar(2);
BarGoLink bar(2);
bar.step();
// load reset times and clean expired instances
@ -754,7 +754,7 @@ void MapPersistentStateManager::PackInstances()
delete result;
}
barGoLink bar( InstanceSet.size() + 1);
BarGoLink bar(InstanceSet.size() + 1);
bar.step();
uint32 InstanceNumber = 1;
@ -917,9 +917,9 @@ void MapPersistentStateManager::LoadCreatureRespawnTimes()
uint32 count = 0;
QueryResult *result = CharacterDatabase.Query("SELECT guid, respawntime, map, instance, difficulty, resettime FROM creature_respawn LEFT JOIN instance ON instance = id");
if(!result)
if (!result)
{
barGoLink bar(1);
BarGoLink bar(1);
bar.step();
@ -928,7 +928,7 @@ void MapPersistentStateManager::LoadCreatureRespawnTimes()
return;
}
barGoLink bar((int)result->GetRowCount());
BarGoLink bar(result->GetRowCount());
do
{
@ -982,9 +982,9 @@ void MapPersistentStateManager::LoadGameobjectRespawnTimes()
QueryResult *result = CharacterDatabase.Query("SELECT guid, respawntime, map, instance, difficulty, resettime FROM gameobject_respawn LEFT JOIN instance ON instance = id");
if(!result)
if (!result)
{
barGoLink bar(1);
BarGoLink bar(1);
bar.step();
@ -993,7 +993,7 @@ void MapPersistentStateManager::LoadGameobjectRespawnTimes()
return;
}
barGoLink bar((int)result->GetRowCount());
BarGoLink bar(result->GetRowCount());
do
{