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:
@@ -445,7 +445,7 @@ class boss_illidan_stormrage : public CreatureScript
|
||||
events2.ScheduleEvent(EVENT_OUTRO_3, 17000);
|
||||
break;
|
||||
case EVENT_OUTRO_3:
|
||||
Unit::Kill(NULL, me);
|
||||
Unit::Kill(nullptr, me);
|
||||
break;
|
||||
}
|
||||
|
||||
|
||||
@@ -112,7 +112,7 @@ class boss_supremus : public CreatureScript
|
||||
|
||||
Unit* FindHatefulStrikeTarget()
|
||||
{
|
||||
Unit* target = NULL;
|
||||
Unit* target = nullptr;
|
||||
ThreatContainer::StorageType const &threatlist = me->getThreatManager().getThreatList();
|
||||
for (ThreatContainer::StorageType::const_iterator i = threatlist.begin(); i != threatlist.end(); ++i)
|
||||
{
|
||||
|
||||
@@ -263,7 +263,7 @@ class spell_teron_gorefiend_spiritual_vengeance : public SpellScriptLoader
|
||||
|
||||
void HandleEffectRemove(AuraEffect const* /*aurEff*/, AuraEffectHandleModes /*mode*/)
|
||||
{
|
||||
Unit::Kill(NULL, GetTarget());
|
||||
Unit::Kill(nullptr, GetTarget());
|
||||
}
|
||||
|
||||
void Register()
|
||||
|
||||
@@ -141,7 +141,7 @@ public:
|
||||
void Reset()
|
||||
{
|
||||
BossAI::Reset();
|
||||
Creature* member = NULL;
|
||||
Creature* member = nullptr;
|
||||
for (uint8 i = 0; i < 4; ++i)
|
||||
if ((member = ObjectAccessor::GetCreature(*me, councilGUIDs[i])))
|
||||
member->AI()->EnterEvadeMode();
|
||||
@@ -177,7 +177,7 @@ public:
|
||||
}
|
||||
else if (param == ACTION_ENRAGE)
|
||||
{
|
||||
Creature* member = NULL;
|
||||
Creature* member = nullptr;
|
||||
for (uint8 i = 0; i < 4; ++i)
|
||||
if ((member = ObjectAccessor::GetCreature(*me, councilGUIDs[i])))
|
||||
member->AI()->DoAction(ACTION_ENRAGE);
|
||||
@@ -185,7 +185,7 @@ public:
|
||||
else if (param == ACTION_END_ENCOUNTER)
|
||||
{
|
||||
me->setActive(false);
|
||||
Creature* member = NULL;
|
||||
Creature* member = nullptr;
|
||||
for (uint8 i = 0; i < 4; ++i)
|
||||
if ((member = ObjectAccessor::GetCreature(*me, councilGUIDs[i])))
|
||||
if (member->IsAlive())
|
||||
@@ -657,7 +657,7 @@ class spell_illidari_council_reflective_shield : public SpellScriptLoader
|
||||
return;
|
||||
|
||||
int32 bp = absorbAmount / 2;
|
||||
target->CastCustomSpell(dmgInfo.GetAttacker(), SPELL_REFLECTIVE_SHIELD_T, &bp, NULL, NULL, true, NULL, aurEff);
|
||||
target->CastCustomSpell(dmgInfo.GetAttacker(), SPELL_REFLECTIVE_SHIELD_T, &bp, nullptr, nullptr, true, NULL, aurEff);
|
||||
}
|
||||
|
||||
void Register()
|
||||
|
||||
Reference in New Issue
Block a user