refactor(Core): NULL -> nullptr (#3275)

* NULL to nullptr

* NULL to nullptr

* NULL to nullptr

* NULL to nullptr

* NULL to nullptr

Co-authored-by: Francesco Borzì <borzifrancesco@gmail.com>
Co-authored-by: Stefano Borzì <stefanoborzi32@gmail.com>
This commit is contained in:
Kitzunu
2020-08-31 11:55:09 +02:00
committed by GitHub
parent 38903b5dfb
commit 1f89282b22
325 changed files with 2348 additions and 2348 deletions

View File

@@ -105,10 +105,10 @@ Battlefield *BattlefieldMgr::GetBattlefieldToZoneId(uint32 zoneid)
if (itr == m_BattlefieldMap.end())
{
// no handle for this zone, return
return NULL;
return nullptr;
}
if (!itr->second->IsEnabled())
return NULL;
return nullptr;
return itr->second;
}
@@ -119,7 +119,7 @@ Battlefield *BattlefieldMgr::GetBattlefieldByBattleId(uint32 battleid)
if ((*itr)->GetBattleId() == battleid)
return (*itr);
}
return NULL;
return nullptr;
}
void BattlefieldMgr::Update(uint32 diff)
@@ -140,5 +140,5 @@ ZoneScript *BattlefieldMgr::GetZoneScript(uint32 zoneId)
if (itr != m_BattlefieldMap.end())
return itr->second;
else
return NULL;
return nullptr;
}