Bug 1626517 - Replaced mozilla::Unused with mozilla::Ignore in mozilla::Decoder/mozilla::Encoder calls. r=m_kato
Differential Revision: https://phabricator.services.mozilla.com/D129022
This commit is contained in:
@@ -3711,8 +3711,7 @@ static nsresult ConvertToUnicode(nsIChannel* aChannel, const uint8_t* aData,
|
||||
UniquePtr<Decoder> unicodeDecoder;
|
||||
|
||||
const Encoding* encoding;
|
||||
size_t bomLength;
|
||||
Tie(encoding, bomLength) = Encoding::ForBOM(data);
|
||||
Tie(encoding, Ignore) = Encoding::ForBOM(data);
|
||||
if (encoding) {
|
||||
unicodeDecoder = encoding->NewDecoderWithBOMRemoval();
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user