Make Enum base class pure virtual
The implementation of the base class is not used anywhere.
The model that are derived from Enum 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 add
(in)equality operators and qHash() overload as hidden friends.
Fixes: QTBUG-139919
Change-Id: I646c143acae8fb7add1e97f4b9ea0ae08ddee257
Reviewed-by: Tatiana Borisova <tatiana.borisova@qt.io>
| commit | a19a9165a7909efee6444a9c09bbf5b0bc9c51b7 |
| parent | 76dca9db29198ffbe2555ffc82780c2a39849702 |
| 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/enum.mustache
- M tests/auto/colorpalette/client/common/QtOAIEnum.h
- M tests/auto/colorpalette/qmlclient/common/OAIEnum.h
- M tests/auto/compression/client/common/QtOAIEnum.h
- M tests/auto/linking_several_clients/client1/common/QtOAIEnum.h
- M tests/auto/mediatype/client/common/QtOAIEnum.h
- M tests/auto/openapi2.0/client/common/QtOAIEnum.h
- M tests/auto/operation-parameters/client/common/QtOAIEnum.h
- M tests/auto/petstore/client/common/QtOAIEnum.h
- M tests/auto/petstore/qmlclient/common/OAIEnum.h
- M tests/auto/responses/client/common/QtOAIEnum.h