aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorFriedemann Kleint <Friedemann.Kleint@qt.io>2020-10-21 11:00:30 +0200
committerFriedemann Kleint <Friedemann.Kleint@qt.io>2020-10-21 14:10:02 +0200
commit40746be63f6f8102a54584e8c2ff919bd2ab830c (patch)
tree391f2c379bb1c29b31c8ae620865c6c0372c8220
parentc409ba5e51c15242df248ffdb5fc2befd6853211 (diff)
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 <cristian.maureira-fredes@qt.io>
-rw-r--r--sources/shiboken2/ApiExtractor/abstractmetabuilder.cpp4
1 files changed, 3 insertions, 1 deletions
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,