mirror of
https://github.com/mod-playerbots/azerothcore-wotlk.git
synced 2026-01-29 08:33:47 +00:00
chore(Apps/Codestyle): add new codestyle checks for pointers and range loops (#19841)
* chore(Apps/Codestyle): add new codestyle checks for pointers and range loops * revert a typo
This commit is contained in:
@@ -303,7 +303,7 @@ public:
|
||||
bool doReset = false;
|
||||
if (resetTimer > 0)
|
||||
{
|
||||
for (const auto& sum : summons)
|
||||
for (auto const& sum : summons)
|
||||
{
|
||||
if (Creature* creature = ObjectAccessor::GetCreature(*me, sum))
|
||||
{
|
||||
|
||||
@@ -471,7 +471,7 @@ public:
|
||||
SetData(TYPE_RING_OF_LAW, NOT_STARTED);
|
||||
break;
|
||||
case DONE:
|
||||
for (const auto& itr : ArenaSpectators)
|
||||
for (auto const& itr : ArenaSpectators)
|
||||
{
|
||||
if (Creature* spectator = instance->GetCreature(itr))
|
||||
{
|
||||
|
||||
@@ -83,7 +83,7 @@ public:
|
||||
}
|
||||
|
||||
GetCreatureListWithEntryInGrid(nearbyWhelps, me, NPC_ROOKERY_WHELP, RANGE_WHELP_CALL_HELP);
|
||||
for (const auto& whelp : nearbyWhelps)
|
||||
for (auto const& whelp : nearbyWhelps)
|
||||
{
|
||||
if (!whelp->IsInCombat())
|
||||
{
|
||||
@@ -106,7 +106,7 @@ public:
|
||||
minDist = 50;
|
||||
tempDist = 50;
|
||||
me->GetGameObjectListWithEntryInGrid(nearbyEggs, GO_ROOKERY_EGG, 40);
|
||||
for (const auto& egg : nearbyEggs)
|
||||
for (auto const& egg : nearbyEggs)
|
||||
{
|
||||
if (egg->isSpawned() && egg->getLootState() == GO_READY)
|
||||
{
|
||||
|
||||
@@ -401,14 +401,14 @@ public:
|
||||
pile->SetLootState(GO_READY);
|
||||
pile->Respawn();
|
||||
}
|
||||
for (const auto& circleGUID : go_urokOgreCirles)
|
||||
for (auto const& circleGUID : go_urokOgreCirles)
|
||||
{
|
||||
if (GameObject* circle = instance->GetGameObject(circleGUID))
|
||||
{
|
||||
circle->Delete();
|
||||
}
|
||||
}
|
||||
for (const auto& mobGUID : UrokMobs)
|
||||
for (auto const& mobGUID : UrokMobs)
|
||||
{
|
||||
if (Creature* mob = instance->GetCreature(mobGUID))
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user