From 40746be63f6f8102a54584e8c2ff919bd2ab830c Mon Sep 17 00:00:00 2001 From: Friedemann Kleint Date: Wed, 21 Oct 2020 11:00:30 +0200 Subject: shiboken2: Fix one more instance of an invalid metatype passed around Add the missing call to decideUsagePattern(). Change-Id: Ibfe07afa3f830cefc953b8702aeca57e2b615f36 Reviewed-by: Cristian Maureira-Fredes --- sources/shiboken2/ApiExtractor/abstractmetabuilder.cpp | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/sources/shiboken2/ApiExtractor/abstractmetabuilder.cpp b/sources/shiboken2/ApiExtractor/abstractmetabuilder.cpp index 15710de4c..d59147d54 100644 --- a/sources/shiboken2/ApiExtractor/abstractmetabuilder.cpp +++ b/sources/shiboken2/ApiExtractor/abstractmetabuilder.cpp @@ -1278,7 +1278,9 @@ void AbstractMetaBuilderPrivate::fixReturnTypeOfConversionOperator(AbstractMetaF if (!retType) return; - metaFunction->replaceType(new AbstractMetaType(retType)); + auto metaType = new AbstractMetaType(retType); + metaType->decideUsagePattern(); + metaFunction->replaceType(metaType); } AbstractMetaFunctionList AbstractMetaBuilderPrivate::classFunctionList(const ScopeModelItem &scopeItem, -- cgit v1.2.3