Misc: Use [[fallthrough]] attribute instead of comment to mark intentional fallthroughs

This commit is contained in:
Peter Keresztes Schmidt authored and Ovahlord committed 2020-07-18 22:43:24 +02:00
1 parent cbb0fe41de
commit a06e5d7d40
14 files changed
+21 -21

No files matched your search

+3 -3
View File
@@ -184,7 +184,7 @@ uint32 SpellImplicitTargetInfo::GetExplicitTargetMask(bool& srcSet, bool& dstSet
targetMask = TARGET_FLAG_UNIT_PASSENGER;
break;
case TARGET_CHECK_RAID_CLASS:
/* fallthrough */
[[fallthrough]];
default:
targetMask = TARGET_FLAG_UNIT;
break;
@@ -2401,7 +2401,7 @@ void SpellInfo::_LoadSpellSpecific()
/// @workaround For non-stacking tracking spells (We need generic solution)
if (Id == 30645) // Gas Cloud Tracking
return SPELL_SPECIFIC_NORMAL;
/* fallthrough */
[[fallthrough]];
case SPELL_AURA_TRACK_RESOURCES:
case SPELL_AURA_TRACK_STEALTHED:
return SPELL_SPECIFIC_TRACKER;
@@ -2794,7 +2794,7 @@ void SpellInfo::_LoadImmunityInfo()
immuneInfo.AuraTypeImmune.insert(SPELL_AURA_MOD_ROOT);
immuneInfo.AuraTypeImmune.insert(SPELL_AURA_MOD_CONFUSE);
immuneInfo.AuraTypeImmune.insert(SPELL_AURA_MOD_FEAR);
/* fallthrough */
[[fallthrough]];
case 61869: // Overload
case 63481:
case 61887: // Lightning Tendrils