refactor(Core): apply clang-tidy modernize-* (#9975)

Co-authored-by: Kitzunu <24550914+Kitzunu@users.noreply.github.com>
This commit is contained in:
Francesco Borzì
2022-01-17 14:35:07 +01:00
committed by GitHub
parent fe4899202d
commit 9dc88def35
71 changed files with 533 additions and 534 deletions

View File

@@ -28,6 +28,7 @@
#include "SpellDefines.h"
#include "ThreatMgr.h"
#include <functional>
#include <utility>
#define WORLD_TRIGGER 12999
@@ -909,7 +910,7 @@ uint32 createProcExtendMask(SpellNonMeleeDamage* damageInfo, SpellMissInfo missC
struct RedirectThreatInfo
{
RedirectThreatInfo() { }
RedirectThreatInfo() = default;
ObjectGuid _targetGUID;
uint32 _threatPct{0};
@@ -1138,7 +1139,7 @@ private:
};
struct AttackPosition {
AttackPosition(Position pos) : _pos(pos), _taken(false) {}
AttackPosition(Position pos) : _pos(std::move(pos)), _taken(false) {}
bool operator==(const int val)
{
return !val;
@@ -1982,7 +1983,7 @@ public:
[[nodiscard]] Spell* FindCurrentSpellBySpellId(uint32 spell_id) const;
[[nodiscard]] int32 GetCurrentSpellCastTime(uint32 spell_id) const;
virtual bool IsMovementPreventedByCasting() const;
[[nodiscard]] virtual bool IsMovementPreventedByCasting() const;
ObjectGuid m_SummonSlot[MAX_SUMMON_SLOT];
ObjectGuid m_ObjectSlot[MAX_GAMEOBJECT_SLOT];
@@ -2506,7 +2507,7 @@ private:
uint32 _oldFactionId; ///< faction before charm
float processDummyAuras(float TakenTotalMod) const;
[[nodiscard]] float processDummyAuras(float TakenTotalMod) const;
};
namespace Acore