summaryrefslogtreecommitdiff
path: root/netwerk/streamconv/converters/mozTXTToHTMLConv.cpp
diff options
context:
space:
mode:
authorMoonchild <moonchild@palemoon.org>2023-11-11 14:27:03 +0100
committerMoonchild <moonchild@palemoon.org>2023-11-11 14:27:03 +0100
commit734f0957fb8bc06ae6e5105d878f1b7007ce8b5d (patch)
treedf73c5d270de365b4035aff74ef703c9f922bd30 /netwerk/streamconv/converters/mozTXTToHTMLConv.cpp
parentc789882a294d29b3e5450a972ad67c4839c75e23 (diff)
downloaduxp-734f0957fb8bc06ae6e5105d878f1b7007ce8b5d.tar.gz
Issue #2343 - replace MOZ_FALLTHROUGH with [[fallthrough]]
Basically a S&R. Removed the macro and adjusts IDL codegen accordingly.
Diffstat (limited to 'netwerk/streamconv/converters/mozTXTToHTMLConv.cpp')
-rw-r--r--netwerk/streamconv/converters/mozTXTToHTMLConv.cpp6
1 files changed, 3 insertions, 3 deletions
diff --git a/netwerk/streamconv/converters/mozTXTToHTMLConv.cpp b/netwerk/streamconv/converters/mozTXTToHTMLConv.cpp
index db23cca35f..c5be10b216 100644
--- a/netwerk/streamconv/converters/mozTXTToHTMLConv.cpp
+++ b/netwerk/streamconv/converters/mozTXTToHTMLConv.cpp
@@ -53,7 +53,7 @@ mozTXTToHTMLConv::EscapeChar(const char16_t ch, nsString& aStringToAppendTo,
break;
}
// else fall through
- MOZ_FALLTHROUGH;
+ [[fallthrough]];
default:
aStringToAppendTo += ch;
}
@@ -101,7 +101,7 @@ mozTXTToHTMLConv::EscapeStr(nsString& aInString, bool inAttribute)
break;
}
// else fall through
- MOZ_FALLTHROUGH;
+ [[fallthrough]];
default:
i++;
}
@@ -512,7 +512,7 @@ mozTXTToHTMLConv::FindURL(const char16_t * aInString, int32_t aInLength, const u
{
case '@':
state[RFC2396E] = unchecked;
- MOZ_FALLTHROUGH;
+ [[fallthrough]];
case '.':
state[abbreviated] = unchecked;
break;