Use Qt::StringLiterals in HttpRequest
Also use u'' to create QChar from char16_t characters.
This patch does not touch QNetworkRequest::setHeader() calls, because
it takes QByteArray and QVariant as its input parameters.
Similarly, do not touch the QUrl::toPercentEncoding().replace() call,
because if operates on a QByteArray, so the arguments are also byte
arrays.
As a drive-by, make some variables in the modified lines const.
Task-number: QTBUG-137390
Change-Id: I5cb68cbf778d81d296bb6f6c69f6de84bf8f7241
Reviewed-by: Tatiana Borisova <tatiana.borisova@qt.io>
| commit | e5ed7ad29715ca90b624910cc1a6f439e74e16b6 |
| parent | cd6e89fab2c7b037a84aad3504dfdf1a61d0f12c |
| author | Ivan Solovev <ivan.solovev@qt.io> |
| committer | Ivan Solovev <ivan.solovev@qt.io> |
| commit time | Wed, 10 Sep 2025 11:53:04 +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