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

@@ -141,7 +141,7 @@ void OPvPCapturePointEP_EWT::SummonSupportUnitAtNorthpassTower(TeamId teamId)
if (m_UnitsSummonedSideId != teamId)
{
m_UnitsSummonedSideId = teamId;
const creature_type * ct = NULL;
const creature_type * ct = nullptr;
if (teamId == TEAM_ALLIANCE)
ct=EP_EWT_Summons_A;
else

View File

@@ -17,7 +17,7 @@
OutdoorPvPNA::OutdoorPvPNA()
{
m_TypeId = OUTDOOR_PVP_NA;
m_obj = NULL;
m_obj = nullptr;
}
void OutdoorPvPNA::HandleKillImpl(Player* player, Unit* killed)
@@ -69,7 +69,7 @@ TeamId OPvPCapturePointNA::GetControllingFaction() const
void OPvPCapturePointNA::SpawnNPCsForTeam(TeamId teamId)
{
const creature_type * creatures = NULL;
const creature_type * creatures = nullptr;
if (teamId == TEAM_ALLIANCE)
creatures=AllianceControlNPCs;
else if (teamId == TEAM_HORDE)
@@ -88,7 +88,7 @@ void OPvPCapturePointNA::DeSpawnNPCs()
void OPvPCapturePointNA::SpawnGOsForTeam(TeamId teamId)
{
const go_type * gos = NULL;
const go_type * gos = nullptr;
if (teamId == TEAM_ALLIANCE)
gos=AllianceControlGOs;
else if (teamId == TEAM_HORDE)
@@ -398,7 +398,7 @@ int32 OPvPCapturePointNA::HandleOpenGo(Player* player, uint64 guid)
int32 retval = OPvPCapturePoint::HandleOpenGo(player, guid);
if (retval >= 0)
{
const go_type * gos = NULL;
const go_type * gos = nullptr;
if (m_ControllingFaction == TEAM_ALLIANCE)
gos=AllianceControlGOs;
else if (m_ControllingFaction == TEAM_HORDE)

View File

@@ -97,7 +97,7 @@ bool OutdoorPvPSI::HandleAreaTrigger(Player* player, uint32 trigger)
if (player->getLevel() < 70)
player->CastSpell(player, SI_TRACES_OF_SILITHYST, true);
// add 19 honor
player->RewardHonor(NULL, 1, 19);
player->RewardHonor(nullptr, 1, 19);
// add 20 cenarion circle repu
player->GetReputationMgr().ModifyReputation(sFactionStore.LookupEntry(609), 20);
// complete quest
@@ -123,7 +123,7 @@ bool OutdoorPvPSI::HandleAreaTrigger(Player* player, uint32 trigger)
if (player->getLevel() < 70)
player->CastSpell(player, SI_TRACES_OF_SILITHYST, true);
// add 19 honor
player->RewardHonor(NULL, 1, 19);
player->RewardHonor(nullptr, 1, 19);
// add 20 cenarion circle repu
player->GetReputationMgr().ModifyReputation(sFactionStore.LookupEntry(609), 20);
// complete quest

View File

@@ -163,7 +163,7 @@ void OutdoorPvPZM::HandlePlayerLeaveZone(Player* player, uint32 zone)
OutdoorPvPZM::OutdoorPvPZM()
{
m_TypeId = OUTDOOR_PVP_ZM;
m_GraveYard = NULL;
m_GraveYard = nullptr;
m_AllianceTowersControlled = 0;
m_HordeTowersControlled = 0;
}