refactor(Core): apply clang-tidy modernize-use-default-member-init (#3827)

This commit is contained in:
Francesco Borzì
2020-12-07 20:34:06 +01:00
committed by GitHub
parent 1cf39b3d22
commit c5a35efd7b
47 changed files with 352 additions and 366 deletions

View File

@@ -174,11 +174,11 @@ enum BattlegroundTeams
struct BattlegroundObjectInfo
{
BattlegroundObjectInfo() : object(nullptr), timer(0), spellid(0) {}
BattlegroundObjectInfo() {}
GameObject* object;
int32 timer;
uint32 spellid;
GameObject* object{nullptr};
int32 timer{0};
uint32 spellid{0};
};
enum ScoreType
@@ -273,7 +273,7 @@ struct BattlegroundScore
class ArenaLogEntryData
{
public:
ArenaLogEntryData() : Guid(0), ArenaTeamId(0), DamageDone(0), HealingDone(0), KillingBlows(0) {}
ArenaLogEntryData() {}
void Fill(const char* name, uint32 guid, uint32 acc, uint32 arenaTeamId, std::string ip)
{
Name = std::string(name);
@@ -284,13 +284,13 @@ public:
}
std::string Name;
uint32 Guid;
uint32 Guid{0};
uint32 Acc;
uint32 ArenaTeamId;
uint32 ArenaTeamId{0};
std::string IP;
uint32 DamageDone;
uint32 HealingDone;
uint32 KillingBlows;
uint32 DamageDone{0};
uint32 HealingDone{0};
uint32 KillingBlows{0};
};
enum BGHonorMode