Bug 1603127 - Replaced mozilla::Tuple with std::tuple and applied structured bindings in mozilla/Encoding.h. r=hsivonen
Differential Revision: https://phabricator.services.mozilla.com/D129920
This commit is contained in:
@@ -19,7 +19,6 @@
|
||||
#include "mozilla/NotNull.h"
|
||||
#include "mozilla/ScopeExit.h"
|
||||
#include "mozilla/StaticPrefs_dom.h"
|
||||
#include "mozilla/Tuple.h"
|
||||
#include "mozilla/Utf8.h"
|
||||
#include "mozilla/Vector.h"
|
||||
#include "mozilla/dom/Document.h"
|
||||
@@ -197,7 +196,7 @@ bool ScriptLoadHandler::TrySetDecoder(nsIIncrementalStreamLoader* aLoader,
|
||||
|
||||
// Do BOM detection.
|
||||
const Encoding* encoding;
|
||||
Tie(encoding, Ignore) = Encoding::ForBOM(Span(aData, aDataLength));
|
||||
std::tie(encoding, std::ignore) = Encoding::ForBOM(Span(aData, aDataLength));
|
||||
if (encoding) {
|
||||
mDecoder = encoding->NewDecoderWithBOMRemoval();
|
||||
return true;
|
||||
|
||||
Reference in New Issue
Block a user