[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

@ -595,7 +595,7 @@ void PoolManager::LoadFromDB()
uint32 count = 0;
barGoLink bar((int)result->GetRowCount());
BarGoLink bar(result->GetRowCount());
do
{
++count;
@ -628,7 +628,7 @@ void PoolManager::LoadFromDB()
count = 0;
if (!result)
{
barGoLink bar2(1);
BarGoLink bar2(1);
bar2.step();
sLog.outString();
@ -637,7 +637,7 @@ void PoolManager::LoadFromDB()
else
{
barGoLink bar2((int)result->GetRowCount());
BarGoLink bar2(result->GetRowCount());
do
{
Field *fields = result->Fetch();
@ -690,7 +690,7 @@ void PoolManager::LoadFromDB()
count = 0;
if (!result)
{
barGoLink bar2(1);
BarGoLink bar2(1);
bar2.step();
sLog.outString();
@ -698,7 +698,7 @@ void PoolManager::LoadFromDB()
}
else
{
barGoLink bar2((int)result->GetRowCount());
BarGoLink bar2(result->GetRowCount());
do
{
Field *fields = result->Fetch();
@ -767,7 +767,7 @@ void PoolManager::LoadFromDB()
count = 0;
if (!result)
{
barGoLink bar2(1);
BarGoLink bar2(1);
bar2.step();
sLog.outString();
@ -776,7 +776,7 @@ void PoolManager::LoadFromDB()
else
{
barGoLink bar2((int)result->GetRowCount());
BarGoLink bar2(result->GetRowCount());
do
{
Field *fields = result->Fetch();
@ -838,7 +838,7 @@ void PoolManager::LoadFromDB()
count = 0;
if (!result)
{
barGoLink bar2(1);
BarGoLink bar2(1);
bar2.step();
sLog.outString();
@ -847,7 +847,7 @@ void PoolManager::LoadFromDB()
else
{
barGoLink bar2((int)result->GetRowCount());
BarGoLink bar2(result->GetRowCount());
do
{
Field *fields = result->Fetch();
@ -922,7 +922,7 @@ void PoolManager::LoadFromDB()
count = 0;
if( !result )
{
barGoLink bar2(1);
BarGoLink bar2(1);
bar2.step();
sLog.outString();
@ -931,7 +931,7 @@ void PoolManager::LoadFromDB()
else
{
barGoLink bar2( (int)result->GetRowCount() );
BarGoLink bar2(result->GetRowCount());
do
{
Field *fields = result->Fetch();