HttpRequest: optimize for loops
Use structured bindings + asKeyValueRange() when iterating over
the `input.m_vars` map. This actually allows to speed up the code.
Also use ranged-for loop instead of iterators when iterating over
the `input.m_files` list. That just improves readability.
Change-Id: Icc1fa4a737788b76e1b308a3f984c0245ddbb104
Reviewed-by: Rym Bouabid <rym.bouabid@qt.io>
Reviewed-by: Tatiana Borisova <tatiana.borisova@qt.io>
| commit | 76f021fb664f256b75622a6eeeeceefd992fe462 |
| parent | c1e1a02aacccfb4e0dac18c606350f89290cf61b |
| author | Ivan Solovev <ivan.solovev@qt.io> |
| committer | Ivan Solovev <ivan.solovev@qt.io> |
| commit time | Wed, 10 Sep 2025 11:53:19 +0200 |
- M src/main/resources/cpp-qt6-client/HttpRequest.cpp.mustache
- M tests/auto/colorpalette/client/client/QtOAIHttpRequest.cpp
- M tests/auto/colorpalette/qmlclient/client/OAIHttpRequest.cpp
- M tests/auto/mediatype/client/client/QtOAIHttpRequest.cpp
- M tests/auto/openapi2.0/client/client/QtOAIHttpRequest.cpp
- M tests/auto/operation-parameters/client/client/QtOAIHttpRequest.cpp
- M tests/auto/petstore/client/client/QtOAIHttpRequest.cpp
- M tests/auto/petstore/qmlclient/client/OAIHttpRequest.cpp