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:
ssummar
2021-11-08 08:14:00 +00:00
parent 712857ab0c
commit 43e270e58d
26 changed files with 94 additions and 111 deletions

View File

@@ -530,7 +530,7 @@ nsresult XMLHttpRequestMainThread::AppendToResponseText(
uint32_t result;
size_t read;
size_t written;
Tie(result, read, written, Ignore) =
std::tie(result, read, written, std::ignore) =
mDecoder->DecodeToUTF16(aBuffer, handle.AsSpan().From(len), aLast);
MOZ_ASSERT(result == kInputEmpty);
MOZ_ASSERT(read == aBuffer.Length());