aboutsummaryrefslogtreecommitdiffstats
path: root/sources/shiboken6/ApiExtractor/messages.h
diff options
context:
space:
mode:
authorFriedemann Kleint <Friedemann.Kleint@qt.io>2022-09-05 14:49:25 +0200
committerFriedemann Kleint <Friedemann.Kleint@qt.io>2022-09-06 13:09:37 +0200
commit21e1bfafa1ed86adfa2e9ec4e990a582e4a20266 (patch)
treebf4e020ba25c6752c4e8674657898502cbf06e0c /sources/shiboken6/ApiExtractor/messages.h
parent429961686dfce2b2a3a5fba868a2664f281fc824 (diff)
shiboken6: Refactor Handling of CustomConversion
CustomConversion can appear in PrimitiveTypeEntry, ContainerTypeEntry and ValueTypeEntry. Move the field from the base class TypeEntry there. The deprecated QString targetConversionRule() was only implemented for ValueTypeEntry; move it from the base class TypeEntry there. In the original code, CustomConversion was stored as a raw pointer in TypeEntry. This is bad since TypeEntry are cloneable. Use a QSharedPointer to prevent crashes. Change-Id: Ia74219671bbd5792398f9711b4a020f5c9825b1b Reviewed-by: Christian Tismer <tismer@stackless.com>
Diffstat (limited to 'sources/shiboken6/ApiExtractor/messages.h')
-rw-r--r--sources/shiboken6/ApiExtractor/messages.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/sources/shiboken6/ApiExtractor/messages.h b/sources/shiboken6/ApiExtractor/messages.h
index 4a23c6487..4edab4b44 100644
--- a/sources/shiboken6/ApiExtractor/messages.h
+++ b/sources/shiboken6/ApiExtractor/messages.h
@@ -247,4 +247,6 @@ QString msgUnknownCheckFunction(const TypeEntry *t);
QString msgArgumentClassNotFound(const AbstractMetaFunctionCPtr &func,
const TypeEntry *t);
+QString msgMissingCustomConversion(const TypeEntry *t);
+
#endif // MESSAGES_H