summaryrefslogtreecommitdiff
path: root/image/decoders/nsJPEGDecoder.cpp
diff options
context:
space:
mode:
authorMoonchild <moonchild@palemoon.org>2023-11-12 20:30:17 +0000
committerMoonchild <moonchild@palemoon.org>2023-11-12 20:30:17 +0000
commitdb4ddc5f6855fdd89cf2af9090f78fb7ebb7f032 (patch)
tree8036ebc434967a0cde3de705a16faea54d117bfd /image/decoders/nsJPEGDecoder.cpp
parentc789882a294d29b3e5450a972ad67c4839c75e23 (diff)
parent9c75c8235e13e0f8309b11fa138253350bce0dd5 (diff)
downloaduxp-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 'image/decoders/nsJPEGDecoder.cpp')
-rw-r--r--image/decoders/nsJPEGDecoder.cpp8
1 files changed, 4 insertions, 4 deletions
diff --git a/image/decoders/nsJPEGDecoder.cpp b/image/decoders/nsJPEGDecoder.cpp
index 1ac25fc6e2..2fd38fc10b 100644
--- a/image/decoders/nsJPEGDecoder.cpp
+++ b/image/decoders/nsJPEGDecoder.cpp
@@ -412,7 +412,7 @@ nsJPEGDecoder::ReadJPEGData(const char* aData, size_t aLength)
mInfo.output_width, mInfo.output_height));
mState = JPEG_START_DECOMPRESS;
- MOZ_FALLTHROUGH; // to start decompressing.
+ [[fallthrough]]; // to start decompressing.
}
case JPEG_START_DECOMPRESS: {
@@ -439,7 +439,7 @@ nsJPEGDecoder::ReadJPEGData(const char* aData, size_t aLength)
// If this is a progressive JPEG ...
mState = mInfo.buffered_image ?
JPEG_DECOMPRESS_PROGRESSIVE : JPEG_DECOMPRESS_SEQUENTIAL;
- MOZ_FALLTHROUGH; // to decompress sequential JPEG.
+ [[fallthrough]]; // to decompress sequential JPEG.
}
case JPEG_DECOMPRESS_SEQUENTIAL: {
@@ -461,7 +461,7 @@ nsJPEGDecoder::ReadJPEGData(const char* aData, size_t aLength)
"We didn't process all of the data!");
mState = JPEG_DONE;
}
- MOZ_FALLTHROUGH; // to decompress progressive JPEG.
+ [[fallthrough]]; // to decompress progressive JPEG.
}
case JPEG_DECOMPRESS_PROGRESSIVE: {
@@ -534,7 +534,7 @@ nsJPEGDecoder::ReadJPEGData(const char* aData, size_t aLength)
mState = JPEG_DONE;
}
- MOZ_FALLTHROUGH; // to finish decompressing.
+ [[fallthrough]]; // to finish decompressing.
}
case JPEG_DONE: {