aboutsummaryrefslogtreecommitdiffstats
path: root/abstractmetabuilder.cpp
diff options
context:
space:
mode:
authorHugo Parente Lima <hugo.lima@openbossa.org>2010-05-17 18:26:46 -0300
committerHugo Parente Lima <hugo.pl@gmail.com>2012-03-09 19:10:02 -0300
commitad4b2999f4c29946ebaf8969503f40211b272ba4 (patch)
treec8687545192ac74381e24be6ef1093357d6a4e80 /abstractmetabuilder.cpp
parent1124238d66a51f5ebf0074c29475594c4b41a90b (diff)
Do not add the base class as a dependency if the base class is not in the graph.
Diffstat (limited to 'abstractmetabuilder.cpp')
-rw-r--r--abstractmetabuilder.cpp6
1 files changed, 4 insertions, 2 deletions
diff --git a/abstractmetabuilder.cpp b/abstractmetabuilder.cpp
index 54c4a705..dfe5803f 100644
--- a/abstractmetabuilder.cpp
+++ b/abstractmetabuilder.cpp
@@ -2645,8 +2645,10 @@ AbstractMetaClassList AbstractMetaBuilder::classesTopologicalSorted(const Abstra
if (clazz->enclosingClass() && map.contains(clazz->enclosingClass()->name()))
graph.addEdge(map[clazz->enclosingClass()->name()], map[clazz->name()]);
- foreach(AbstractMetaClass* baseClass, getBaseClasses(clazz))
- graph.addEdge(map[baseClass->name()], map[clazz->name()]);
+ foreach(AbstractMetaClass* baseClass, getBaseClasses(clazz)) {
+ if (map.contains(baseClass->name()))
+ graph.addEdge(map[baseClass->name()], map[clazz->name()]);
+ }
foreach (AbstractMetaFunction* func, clazz->functions()) {
foreach (AbstractMetaArgument* arg, func->arguments()) {