style: restore code style

This commit is contained in:
Helias
2022-05-27 11:08:59 +02:00
parent ef9ed561c7
commit 1aff20100e

View File

@@ -50,9 +50,9 @@ public:
return commandTable; return commandTable;
} }
static bool HandleDisableTransMogVisual(ChatHandler *handler, bool hide) static bool HandleDisableTransMogVisual(ChatHandler* handler, bool hide)
{ {
Player *player = handler->GetPlayer(); Player* player = handler->GetPlayer();
if (hide) if (hide)
{ {
@@ -69,7 +69,7 @@ public:
return true; return true;
} }
static bool HandleAddTransmogItem(ChatHandler *handler, Optional<PlayerIdentifier> player, ItemTemplate const *itemTemplate) static bool HandleAddTransmogItem(ChatHandler* handler, Optional<PlayerIdentifier> player, ItemTemplate const* itemTemplate)
{ {
if (!sTransmogrification->GetUseCollectionSystem()) if (!sTransmogrification->GetUseCollectionSystem())
return true; return true;
@@ -91,7 +91,7 @@ public:
return false; return false;
} }
Player *target = player->GetConnectedPlayer(); Player* target = player->GetConnectedPlayer();
if (!sTransmogrification->GetTrackUnusableItems() && !sTransmogrification->SuitableForTransmogrification(target, itemTemplate)) if (!sTransmogrification->GetTrackUnusableItems() && !sTransmogrification->SuitableForTransmogrification(target, itemTemplate))
{ {
@@ -112,7 +112,7 @@ public:
auto guid = player->GetGUID().GetCounter(); auto guid = player->GetGUID().GetCounter();
if (QueryResult result = CharacterDatabase.Query("SELECT `account` FROM `characters` WHERE `guid` = {}", guid)) if (QueryResult result = CharacterDatabase.Query("SELECT `account` FROM `characters` WHERE `guid` = {}", guid))
{ {
Field *fields = result->Fetch(); Field* fields = result->Fetch();
accountId = fields[0].Get<uint32>(); accountId = fields[0].Get<uint32>();
} }
else else
@@ -159,7 +159,7 @@ public:
return true; return true;
} }
static bool HandleAddTransmogItemSet(ChatHandler *handler, Optional<PlayerIdentifier> player, Variant<Hyperlink<itemset>, uint32> itemSetId) static bool HandleAddTransmogItemSet(ChatHandler* handler, Optional<PlayerIdentifier> player, Variant<Hyperlink<itemset>, uint32> itemSetId)
{ {
if (!sTransmogrification->GetUseCollectionSystem()) if (!sTransmogrification->GetUseCollectionSystem())
return true; return true;
@@ -181,8 +181,8 @@ public:
return false; return false;
} }
Player *target = player->GetConnectedPlayer(); Player* target = player->GetConnectedPlayer();
ItemSetEntry const *set = sItemSetStore.LookupEntry(uint32(itemSetId)); ItemSetEntry const* set = sItemSetStore.LookupEntry(uint32(itemSetId));
if (!set) if (!set)
{ {
@@ -199,7 +199,7 @@ public:
auto guid = player->GetGUID().GetCounter(); auto guid = player->GetGUID().GetCounter();
if (QueryResult result = CharacterDatabase.Query("SELECT `account` FROM `characters` WHERE `guid` = {}", guid)) if (QueryResult result = CharacterDatabase.Query("SELECT `account` FROM `characters` WHERE `guid` = {}", guid))
{ {
Field *fields = result->Fetch(); Field* fields = result->Fetch();
accountId = fields[0].Get<uint32>(); accountId = fields[0].Get<uint32>();
} }
else else
@@ -212,7 +212,7 @@ public:
itemId = set->itemId[i]; itemId = set->itemId[i];
if (itemId) if (itemId)
{ {
ItemTemplate const *itemTemplate = sObjectMgr->GetItemTemplate(itemId); ItemTemplate const* itemTemplate = sObjectMgr->GetItemTemplate(itemId);
if (itemTemplate) if (itemTemplate)
{ {
if (!sTransmogrification->GetTrackUnusableItems() && !sTransmogrification->SuitableForTransmogrification(target, itemTemplate)) if (!sTransmogrification->GetTrackUnusableItems() && !sTransmogrification->SuitableForTransmogrification(target, itemTemplate))