mirror of
https://github.com/overte-org/overte.git
synced 2025-08-06 10:43:45 +02:00
switch to foreach per CR feeddback
This commit is contained in:
parent
63a226f999
commit
3ebf322fcf
1 changed files with 3 additions and 4 deletions
|
@ -121,10 +121,9 @@ MiniPromise::Promise AssetClient::queryCacheMetaAsync(const QUrl& url, MiniPromi
|
||||||
{ "metaDataURL", metaData.url() },
|
{ "metaDataURL", metaData.url() },
|
||||||
});
|
});
|
||||||
} else {
|
} else {
|
||||||
QHashIterator<QNetworkRequest::Attribute, QVariant> i(metaData.attributes());
|
auto metaAttributes = metaData.attributes();
|
||||||
while (i.hasNext()) {
|
foreach(QNetworkRequest::Attribute k, metaAttributes.keys()) {
|
||||||
i.next();
|
attributes[QString::number(k)] = metaAttributes[k];
|
||||||
attributes[QString::number(i.key())] = i.value();
|
|
||||||
}
|
}
|
||||||
for (const auto& i : metaData.rawHeaders()) {
|
for (const auto& i : metaData.rawHeaders()) {
|
||||||
rawHeaders[i.first] = i.second;
|
rawHeaders[i.first] = i.second;
|
||||||
|
|
Loading…
Reference in a new issue