mirror of
https://github.com/mod-playerbots/azerothcore-wotlk.git
synced 2026-03-17 06:25:11 +00:00
refactor(Core): apply clang-tidy modernize-* (#9975)
Co-authored-by: Kitzunu <24550914+Kitzunu@users.noreply.github.com>
This commit is contained in:
@@ -699,7 +699,7 @@ public:
|
||||
// SpellInfo object management
|
||||
[[nodiscard]] SpellInfo const* GetSpellInfo(uint32 spellId) const { return spellId < GetSpellInfoStoreSize() ? mSpellInfoMap[spellId] : nullptr; }
|
||||
// Use this only with 100% valid spellIds
|
||||
SpellInfo const* AssertSpellInfo(uint32 spellId) const
|
||||
[[nodiscard]] SpellInfo const* AssertSpellInfo(uint32 spellId) const
|
||||
{
|
||||
ASSERT(spellId < GetSpellInfoStoreSize());
|
||||
SpellInfo const* spellInfo = mSpellInfoMap[spellId];
|
||||
@@ -707,7 +707,7 @@ public:
|
||||
return spellInfo;
|
||||
}
|
||||
// use this instead of AssertSpellInfo to have the problem logged instead of crashing the server
|
||||
SpellInfo const* CheckSpellInfo(uint32 spellId) const
|
||||
[[nodiscard]] SpellInfo const* CheckSpellInfo(uint32 spellId) const
|
||||
{
|
||||
if (spellId >= GetSpellInfoStoreSize())
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user