Make Object base class pure virtual
Similarly to the Enum, the implementation of the base class
is not used anywhere.
The models that are derived from Object provide their own
implementations of all virtual methods based on the members that
they generate. None of these methods ever calls the base
implementation.
This commit makes the base class pure virtual and also converts
the (in)equality operators and qHash() overloads to hidden friends
instead of having them in the global namespace. This makes sure
that they are only found by ADL lookup.
Change-Id: Icc21ae332c37115bf7eab1699c2a7541b55956f6
Reviewed-by: Tatiana Borisova <tatiana.borisova@qt.io>
| commit | d177d31f992eb74c62551040eb950110291bc157 |
| parent | a19a9165a7909efee6444a9c09bbf5b0bc9c51b7 |
| author | Ivan Solovev <ivan.solovev@qt.io> |
| committer | Ivan Solovev <ivan.solovev@qt.io> |
| commit time | Tue, 11 Nov 2025 15:57:40 +0100 |
- M src/tools/qtopenapi-generator/src/main/resources/cpp-qt6-client/common/object.mustache
- M tests/auto/colorpalette/client/common/QtOAIObject.h
- M tests/auto/colorpalette/qmlclient/common/OAIObject.h
- M tests/auto/compression/client/common/QtOAIObject.h
- M tests/auto/linking_several_clients/client1/common/QtOAIObject.h
- M tests/auto/mediatype/client/common/QtOAIObject.h
- M tests/auto/openapi2.0/client/common/QtOAIObject.h
- M tests/auto/operation-parameters/client/common/QtOAIObject.h
- M tests/auto/petstore/client/common/QtOAIObject.h
- M tests/auto/petstore/qmlclient/common/OAIObject.h
- M tests/auto/responses/client/common/QtOAIObject.h