Move serialization helpers from api-base to helpers
The functions do not depend on or use the internal state of the
{{prefix}}BaseApi class, so it makes sense to move them to the
dedicated helpers header, where all other serialization-related
helper functions are already declared.
As a drive-by: start using Qt::StringLiterals in the implementation
of the moved methods.
Fixes: QTBUG-140222
Change-Id: Iebb72a474bc743aa6cab3c1798d095d8e5e5263f
Reviewed-by: Tatiana Borisova <tatiana.borisova@qt.io>
| commit | af29eddd328b1189db190c422c12a81d78be856c |
| parent | 0107db2ff906f8a32d77286d8f2127dc35dcd6cb |
| author | Ivan Solovev <ivan.solovev@qt.io> |
| committer | Ivan Solovev <ivan.solovev@qt.io> |
| commit time | Fri, 26 Sep 2025 17:42:22 +0200 |
- M src/main/resources/cpp-qt6-client/api-base-body.mustache
- M src/main/resources/cpp-qt6-client/api-base-header.mustache
- M src/main/resources/cpp-qt6-client/helpers-body.mustache
- M src/main/resources/cpp-qt6-client/helpers-header.mustache
- M tests/auto/colorpalette/client/client/QtOAIBaseApi.cpp
- M tests/auto/colorpalette/client/client/QtOAIBaseApi.h
- M tests/auto/colorpalette/client/client/QtOAIHelpers.cpp
- M tests/auto/colorpalette/client/client/QtOAIHelpers.h
- M tests/auto/colorpalette/qmlclient/client/OAIBaseApi.cpp
- M tests/auto/colorpalette/qmlclient/client/OAIBaseApi.h
- M tests/auto/colorpalette/qmlclient/client/OAIHelpers.cpp
- M tests/auto/colorpalette/qmlclient/client/OAIHelpers.h
- M tests/auto/mediatype/client/client/QtOAIBaseApi.cpp
- M tests/auto/mediatype/client/client/QtOAIBaseApi.h
- M tests/auto/mediatype/client/client/QtOAIHelpers.cpp
- M tests/auto/mediatype/client/client/QtOAIHelpers.h
- M tests/auto/openapi2.0/client/client/QtOAIBaseApi.cpp
- M tests/auto/openapi2.0/client/client/QtOAIBaseApi.h
- M tests/auto/openapi2.0/client/client/QtOAIHelpers.cpp
- M tests/auto/openapi2.0/client/client/QtOAIHelpers.h
- M tests/auto/operation-parameters/client/client/QtOAIBaseApi.cpp
- M tests/auto/operation-parameters/client/client/QtOAIBaseApi.h
- M tests/auto/operation-parameters/client/client/QtOAIHelpers.cpp
- M tests/auto/operation-parameters/client/client/QtOAIHelpers.h
- M tests/auto/petstore/client/client/QtOAIBaseApi.cpp
- M tests/auto/petstore/client/client/QtOAIBaseApi.h
- M tests/auto/petstore/client/client/QtOAIHelpers.cpp
- M tests/auto/petstore/client/client/QtOAIHelpers.h
- M tests/auto/petstore/qmlclient/client/OAIBaseApi.cpp
- M tests/auto/petstore/qmlclient/client/OAIBaseApi.h
- M tests/auto/petstore/qmlclient/client/OAIHelpers.cpp
- M tests/auto/petstore/qmlclient/client/OAIHelpers.h