aboutsummaryrefslogtreecommitdiffstats
path: root/sources/shiboken2/ApiExtractor/abstractmetabuilder.cpp
diff options
context:
space:
mode:
authorFriedemann Kleint <Friedemann.Kleint@qt.io>2020-05-18 09:53:55 +0200
committerFriedemann Kleint <Friedemann.Kleint@qt.io>2020-05-18 10:08:12 +0200
commit59352c3ed2364e09b9c4dae91bd7a16755ea4d95 (patch)
tree1f17db8be346af7beb25d5430f50d3e13e510961 /sources/shiboken2/ApiExtractor/abstractmetabuilder.cpp
parentba348922cfe5a9318c8e90f18789f1fab822029a (diff)
shiboken: Fix duplicate base classes
When adding the code model dumping functions, it was noted that base classes show up duplicated. Remove code snippet adding the base class again, which is apparently a remnant from before removal of the InterfaceTypeEntry, ba366999c39e864b2999e6df2693ced3dbe34046. Task-number: PYSIDE-1265 Change-Id: I80737a5fb7b3a4505d8ab89dda252ad8878e0418 Reviewed-by: Christian Tismer <tismer@stackless.com>
Diffstat (limited to 'sources/shiboken2/ApiExtractor/abstractmetabuilder.cpp')
-rw-r--r--sources/shiboken2/ApiExtractor/abstractmetabuilder.cpp4
1 files changed, 0 insertions, 4 deletions
diff --git a/sources/shiboken2/ApiExtractor/abstractmetabuilder.cpp b/sources/shiboken2/ApiExtractor/abstractmetabuilder.cpp
index 6b230f1f4..02450f1c7 100644
--- a/sources/shiboken2/ApiExtractor/abstractmetabuilder.cpp
+++ b/sources/shiboken2/ApiExtractor/abstractmetabuilder.cpp
@@ -3003,10 +3003,6 @@ AbstractMetaClassList AbstractMetaBuilderPrivate::classesTopologicalSorted(const
const AbstractMetaClassList &bases = getBaseClasses(clazz);
for (AbstractMetaClass *baseClass : bases) {
- // Fix polymorphic expression
- if (clazz->baseClass() == baseClass)
- clazz->setBaseClass(baseClass);
-
const auto baseIt = map.constFind(baseClass);
if (baseIt!= map.cend())
graph.addEdge(baseIt.value(), classIndex);