Avoid unnecessary QBA->QString->QBA in operation callbacks
The HttpRequestWorker::parseResponse() method returns a QBA.
The QJsonDocument::fromJson() method also takes a QBA.
It's not clear why it was converted to QString in the middle, so
get rid of this conversion.
As a drive-by: take the result of parseResponse() by value, not
by const ref.
Task-number: QTBUG-137429
Change-Id: I81c36eed8511676bbe931d9486195ec2877678c5
Reviewed-by: Tatiana Borisova <tatiana.borisova@qt.io>
| commit | deb609f7b97f16d7517ef0ed7d2e9521729512b9 |
| parent | 78cfdb4bdb6efef5f0d2b84c6fc0964dac4fb4cd |
| author | Ivan Solovev <ivan.solovev@qt.io> |
| committer | Ivan Solovev <ivan.solovev@qt.io> |
| commit time | Tue, 2 Sep 2025 16:45:55 +0200 |
- M src/main/resources/cpp-qt6-client/api-body.mustache
- M tests/auto/colorpalette/client/client/QtOAIColorsApi.cpp
- M tests/auto/colorpalette/client/client/QtOAIUsersApi.cpp
- M tests/auto/colorpalette/qmlclient/client/OAIColorsApi.cpp
- M tests/auto/colorpalette/qmlclient/client/OAIUsersApi.cpp
- M tests/auto/mediatype/client/client/QtOAITestApi.cpp
- M tests/auto/openapi2.0/client/client/QtOAIFakeApi.cpp
- M tests/auto/operation-parameters/client/client/QtOAITestApi.cpp
- M tests/auto/petstore/client/client/QtOAIPetApi.cpp
- M tests/auto/petstore/client/client/QtOAIStoreApi.cpp
- M tests/auto/petstore/client/client/QtOAIUserApi.cpp
- M tests/auto/petstore/qmlclient/client/OAIPetApi.cpp
- M tests/auto/petstore/qmlclient/client/OAIStoreApi.cpp
- M tests/auto/petstore/qmlclient/client/OAIUserApi.cpp