QDecompressHelper: uncache acceptedEncoding

The only user already has its own cache of transformed copy of acceptedEncoding list since 43d15dd572

Change-Id: I485b41555f327c6ff39dd48347240a725f00e09b
Reviewed-by: Mårten Nordheim <marten.nordheim@qt.io>
This commit is contained in:
Anton Kudryavtsev 2023-09-05 12:13:04 +03:00 committed by Mårten Nordheim
parent b134718c11
commit 4bd3567484

View File

@ -75,15 +75,12 @@ bool QDecompressHelper::isSupportedEncoding(QByteArrayView encoding)
QByteArrayList QDecompressHelper::acceptedEncoding()
{
static QByteArrayList accepted = []() {
QByteArrayList list;
list.reserve(std::size(contentEncodingMapping));
for (const auto &mapping : contentEncodingMapping) {
list << mapping.name.toByteArray();
}
return list;
}();
return accepted;
QByteArrayList list;
list.reserve(std::size(contentEncodingMapping));
for (const auto &mapping : contentEncodingMapping) {
list << mapping.name.toByteArray();
}
return list;
}
QDecompressHelper::~QDecompressHelper()