diff options
author | Moonchild <moonchild@palemoon.org> | 2023-11-12 20:30:17 +0000 |
---|---|---|
committer | Moonchild <moonchild@palemoon.org> | 2023-11-12 20:30:17 +0000 |
commit | db4ddc5f6855fdd89cf2af9090f78fb7ebb7f032 (patch) | |
tree | 8036ebc434967a0cde3de705a16faea54d117bfd /dom/media/MediaInfo.cpp | |
parent | c789882a294d29b3e5450a972ad67c4839c75e23 (diff) | |
parent | 9c75c8235e13e0f8309b11fa138253350bce0dd5 (diff) | |
download | uxp-db4ddc5f6855fdd89cf2af9090f78fb7ebb7f032.tar.gz |
Merge pull request 'Replace MOZ_FALLTHROUGH with [[fallthrough]]' (#2379) from 2343-fallthrough-work into master
Reviewed-on: https://repo.palemoon.org/MoonchildProductions/UXP/pulls/2379
Diffstat (limited to 'dom/media/MediaInfo.cpp')
-rw-r--r-- | dom/media/MediaInfo.cpp | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/dom/media/MediaInfo.cpp b/dom/media/MediaInfo.cpp index 568183e688..f40f1584d9 100644 --- a/dom/media/MediaInfo.cpp +++ b/dom/media/MediaInfo.cpp @@ -144,9 +144,9 @@ AudioConfig::SampleSize(AudioConfig::SampleFormat aFormat) switch (aFormat) { case FORMAT_U8: return 1; case FORMAT_S16: return 2; - case FORMAT_S24: MOZ_FALLTHROUGH; - case FORMAT_S24LSB: MOZ_FALLTHROUGH; - case FORMAT_S32: MOZ_FALLTHROUGH; + case FORMAT_S24: [[fallthrough]]; + case FORMAT_S24LSB: [[fallthrough]]; + case FORMAT_S32: [[fallthrough]]; case FORMAT_FLT: return 4; case FORMAT_NONE: default: return 0; @@ -159,11 +159,11 @@ AudioConfig::FormatToBits(AudioConfig::SampleFormat aFormat) switch (aFormat) { case FORMAT_U8: return 8; case FORMAT_S16: return 16; - case FORMAT_S24LSB: MOZ_FALLTHROUGH; + case FORMAT_S24LSB: [[fallthrough]]; case FORMAT_S24: return 24; - case FORMAT_S32: MOZ_FALLTHROUGH; + case FORMAT_S32: [[fallthrough]]; case FORMAT_FLT: return 32; - case FORMAT_NONE: MOZ_FALLTHROUGH; + case FORMAT_NONE: [[fallthrough]]; default: return 0; } } |