aboutsummaryrefslogtreecommitdiffstats
path: root/sources/shiboken2/ApiExtractor/abstractmetabuilder.cpp
diff options
context:
space:
mode:
authorFriedemann Kleint <Friedemann.Kleint@qt.io>2020-10-21 19:13:32 +0200
committerFriedemann Kleint <Friedemann.Kleint@qt.io>2020-10-21 19:13:32 +0200
commit55fd16d92a36558335e7d7cd7cdb57ead43d55db (patch)
tree2573c4fabdb80535972a3c91a262f2e3fa80cf80 /sources/shiboken2/ApiExtractor/abstractmetabuilder.cpp
parente8d90a9e62898d3b746772d9ae8542b87efcecf8 (diff)
parent85bb24c39df53ea61f59351a60f4284c32cb50ff (diff)
Merge remote-tracking branch 'origin/5.15' into dev
Diffstat (limited to 'sources/shiboken2/ApiExtractor/abstractmetabuilder.cpp')
-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 be285693e..75fd6af5b 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,