aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--abstractmetabuilder.cpp6
1 files changed, 4 insertions, 2 deletions
diff --git a/abstractmetabuilder.cpp b/abstractmetabuilder.cpp
index b02a60fb..6bfee26c 100644
--- a/abstractmetabuilder.cpp
+++ b/abstractmetabuilder.cpp
@@ -2668,15 +2668,17 @@ AbstractMetaClassList AbstractMetaBuilder::classesTopologicalSorted(const Abstra
const AbstractMetaClassList& classList = cppClass ? cppClass->innerClasses() : m_metaClasses;
- Graph graph(classList.count());
-
int i = 0;
foreach (AbstractMetaClass* clazz, classList) {
+ if (map.contains(clazz->qualifiedCppName()))
+ continue;
map[clazz->qualifiedCppName()] = i;
reverseMap[i] = clazz;
i++;
}
+ Graph graph(map.count());
+
// TODO choose a better name to these regexs
QRegExp regex1("\\(.*\\)");
QRegExp regex2("::.*");