diff options
author | Friedemann Kleint <Friedemann.Kleint@qt.io> | 2020-10-21 19:13:32 +0200 |
---|---|---|
committer | Friedemann Kleint <Friedemann.Kleint@qt.io> | 2020-10-21 19:13:32 +0200 |
commit | 55fd16d92a36558335e7d7cd7cdb57ead43d55db (patch) | |
tree | 2573c4fabdb80535972a3c91a262f2e3fa80cf80 /sources/shiboken2/ApiExtractor/abstractmetabuilder.cpp | |
parent | e8d90a9e62898d3b746772d9ae8542b87efcecf8 (diff) | |
parent | 85bb24c39df53ea61f59351a60f4284c32cb50ff (diff) |
Merge remote-tracking branch 'origin/5.15' into dev
Change-Id: I8831b840fa7816b8919ecbaab17b41822a0a6012
Diffstat (limited to 'sources/shiboken2/ApiExtractor/abstractmetabuilder.cpp')
-rw-r--r-- | sources/shiboken2/ApiExtractor/abstractmetabuilder.cpp | 4 |
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, |