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:
parent
b134718c11
commit
4bd3567484
@ -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()
|
||||
|
Loading…
Reference in New Issue
Block a user