summaryrefslogtreecommitdiff
path: root/netwerk/cache/nsDiskCacheDevice.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'netwerk/cache/nsDiskCacheDevice.cpp')
-rw-r--r--netwerk/cache/nsDiskCacheDevice.cpp20
1 files changed, 10 insertions, 10 deletions
diff --git a/netwerk/cache/nsDiskCacheDevice.cpp b/netwerk/cache/nsDiskCacheDevice.cpp
index 05bd6e06f2..c18ad012af 100644
--- a/netwerk/cache/nsDiskCacheDevice.cpp
+++ b/netwerk/cache/nsDiskCacheDevice.cpp
@@ -303,17 +303,17 @@ nsDiskCache::Hash(const char * key, PLDHashNumber initval)
/*------------------------------------- handle the last 11 bytes */
c += length;
switch(len) { /* all the case statements fall through */
- case 11: c += (uint32_t(k[10])<<24); MOZ_FALLTHROUGH;
- case 10: c += (uint32_t(k[9])<<16); MOZ_FALLTHROUGH;
- case 9 : c += (uint32_t(k[8])<<8); MOZ_FALLTHROUGH;
+ case 11: c += (uint32_t(k[10])<<24); [[fallthrough]];
+ case 10: c += (uint32_t(k[9])<<16); [[fallthrough]];
+ case 9 : c += (uint32_t(k[8])<<8); [[fallthrough]];
/* the low-order byte of c is reserved for the length */
- case 8 : b += (uint32_t(k[7])<<24); MOZ_FALLTHROUGH;
- case 7 : b += (uint32_t(k[6])<<16); MOZ_FALLTHROUGH;
- case 6 : b += (uint32_t(k[5])<<8); MOZ_FALLTHROUGH;
- case 5 : b += k[4]; MOZ_FALLTHROUGH;
- case 4 : a += (uint32_t(k[3])<<24); MOZ_FALLTHROUGH;
- case 3 : a += (uint32_t(k[2])<<16); MOZ_FALLTHROUGH;
- case 2 : a += (uint32_t(k[1])<<8); MOZ_FALLTHROUGH;
+ case 8 : b += (uint32_t(k[7])<<24); [[fallthrough]];
+ case 7 : b += (uint32_t(k[6])<<16); [[fallthrough]];
+ case 6 : b += (uint32_t(k[5])<<8); [[fallthrough]];
+ case 5 : b += k[4]; [[fallthrough]];
+ case 4 : a += (uint32_t(k[3])<<24); [[fallthrough]];
+ case 3 : a += (uint32_t(k[2])<<16); [[fallthrough]];
+ case 2 : a += (uint32_t(k[1])<<8); [[fallthrough]];
case 1 : a += k[0];
/* case 0: nothing left to add */
}