diff options
| author | Shauren <shauren.trinity@gmail.com> | 2025-07-11 17:47:14 +0200 |
|---|---|---|
| committer | Shauren <shauren.trinity@gmail.com> | 2025-07-11 17:47:14 +0200 |
| commit | fbbcc3167053950d2000cd88bb7d98266491768f (patch) | |
| tree | 170a59a57cf001b16b8e4545d6deda486220dd05 /src/server/scripts/Northrend | |
| parent | cbb532e4bec11d59f2072441a43b7c797de6d16d (diff) | |
Core/Misc: Simplify LinkedListHead::isEmpty and rename to empty to fit standard container naming
Diffstat (limited to 'src/server/scripts/Northrend')
3 files changed, 7 insertions, 7 deletions
diff --git a/src/server/scripts/Northrend/CrusadersColiseum/TrialOfTheChampion/boss_grand_champions.cpp b/src/server/scripts/Northrend/CrusadersColiseum/TrialOfTheChampion/boss_grand_champions.cpp index bf35bcda21e..98068756c43 100644 --- a/src/server/scripts/Northrend/CrusadersColiseum/TrialOfTheChampion/boss_grand_champions.cpp +++ b/src/server/scripts/Northrend/CrusadersColiseum/TrialOfTheChampion/boss_grand_champions.cpp @@ -98,7 +98,7 @@ void AggroAllPlayers(Creature* temp) { Map::PlayerList const& PlList = temp->GetMap()->GetPlayers(); - if (PlList.isEmpty()) + if (PlList.empty()) return; for (Map::PlayerList::const_iterator i = PlList.begin(); i != PlList.end(); ++i) @@ -254,7 +254,7 @@ public: if (uiChargeTimer <= uiDiff) { Map::PlayerList const& players = me->GetMap()->GetPlayers(); - if (!players.isEmpty()) + if (!players.empty()) { for (Map::PlayerList::const_iterator itr = players.begin(); itr != players.end(); ++itr) { @@ -281,7 +281,7 @@ public: if (Unit* pPassenger = pVehicle->GetPassenger(SEAT_ID_0)) { Map::PlayerList const& players = me->GetMap()->GetPlayers(); - if (!players.isEmpty()) + if (!players.empty()) { for (Map::PlayerList::const_iterator itr = players.begin(); itr != players.end(); ++itr) { @@ -399,7 +399,7 @@ public: if (uiInterceptTimer <= uiDiff) { Map::PlayerList const& players = me->GetMap()->GetPlayers(); - if (!players.isEmpty()) + if (!players.empty()) { for (Map::PlayerList::const_iterator itr = players.begin(); itr != players.end(); ++itr) { @@ -863,7 +863,7 @@ public: else { Map::PlayerList const& players = me->GetMap()->GetPlayers(); - if (!players.isEmpty()) + if (!players.empty()) { for (Map::PlayerList::const_iterator itr = players.begin(); itr != players.end(); ++itr) { diff --git a/src/server/scripts/Northrend/CrusadersColiseum/TrialOfTheChampion/trial_of_the_champion.cpp b/src/server/scripts/Northrend/CrusadersColiseum/TrialOfTheChampion/trial_of_the_champion.cpp index e3c4e1e6c61..92ce847ad77 100644 --- a/src/server/scripts/Northrend/CrusadersColiseum/TrialOfTheChampion/trial_of_the_champion.cpp +++ b/src/server/scripts/Northrend/CrusadersColiseum/TrialOfTheChampion/trial_of_the_champion.cpp @@ -374,7 +374,7 @@ public: void AggroAllPlayers(Creature* temp) { Map::PlayerList const& PlList = me->GetMap()->GetPlayers(); - if (PlList.isEmpty()) + if (PlList.empty()) return; for (Map::PlayerList::const_iterator i = PlList.begin(); i != PlList.end(); ++i) diff --git a/src/server/scripts/Northrend/Naxxramas/boss_four_horsemen.cpp b/src/server/scripts/Northrend/Naxxramas/boss_four_horsemen.cpp index d30b51119b0..62d157f3b28 100644 --- a/src/server/scripts/Northrend/Naxxramas/boss_four_horsemen.cpp +++ b/src/server/scripts/Northrend/Naxxramas/boss_four_horsemen.cpp @@ -216,7 +216,7 @@ struct boss_four_horsemen_baseAI : public BossAI } instance->SetBossState(BOSS_HORSEMEN, IN_PROGRESS); Map::PlayerList const& players = me->GetMap()->GetPlayers(); - if (players.isEmpty()) // sanity check + if (players.empty()) // sanity check ResetEncounter(); for (Horseman boss : horsemen) |
