Improve const correctness in operation callbacks
To avoid unnecessary detaches and copies.
We cannot optimize the for loop over QJsonObject, because
QJsonObject::asKeyValueRange() was only added in Qt 6.10, and we
aim to support Qt 6.8.
Change-Id: Ie150e7ba60e78d201d1d5bbed0d16d249b29b719
Reviewed-by: Tatiana Borisova <tatiana.borisova@qt.io>
| commit | da9b394fa5cc69d7cfa0b4b28858160724d9b44a |
| parent | deb609f7b97f16d7517ef0ed7d2e9521729512b9 |
| author | Ivan Solovev <ivan.solovev@qt.io> |
| committer | Ivan Solovev <ivan.solovev@qt.io> |
| commit time | Tue, 2 Sep 2025 16:45:57 +0200 |
- M src/main/resources/cpp-qt6-client/api-body.mustache
- M tests/auto/colorpalette/client/client/QtOAIColorsApi.cpp
- M tests/auto/colorpalette/qmlclient/client/OAIColorsApi.cpp
- M tests/auto/petstore/client/client/QtOAIPetApi.cpp
- M tests/auto/petstore/client/client/QtOAIStoreApi.cpp
- M tests/auto/petstore/qmlclient/client/OAIPetApi.cpp
- M tests/auto/petstore/qmlclient/client/OAIStoreApi.cpp