aboutsummaryrefslogtreecommitdiffstats
path: root/abstractmetabuilder.cpp
diff options
context:
space:
mode:
authorHugo Parente Lima <hugo.lima@openbossa.org>2010-04-28 15:39:35 -0300
committerHugo Parente Lima <hugo.pl@gmail.com>2012-03-09 19:10:01 -0300
commit4adc6f3519a25060db98182eee66f3dcb9a60999 (patch)
treea3f4c09d9569d66682ba27d7ebbc43ff57593c2c /abstractmetabuilder.cpp
parentc615b9c1db720d97034263081ad83f80496404a7 (diff)
Only add an enclosing class to the dependency graph if it's part of the graph.
Diffstat (limited to 'abstractmetabuilder.cpp')
-rw-r--r--abstractmetabuilder.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/abstractmetabuilder.cpp b/abstractmetabuilder.cpp
index 0f3e5461..ea86ebe0 100644
--- a/abstractmetabuilder.cpp
+++ b/abstractmetabuilder.cpp
@@ -2657,7 +2657,7 @@ AbstractMetaClassList AbstractMetaBuilder::classesTopologicalSorted(const Abstra
if (clazz->isInterface() || !clazz->typeEntry()->generateCode())
continue;
- if (clazz->enclosingClass())
+ if (clazz->enclosingClass() && map.contains(clazz->enclosingClass()->name()))
graph.addEdge(map[clazz->enclosingClass()->name()], map[clazz->name()]);
foreach(AbstractMetaClass* baseClass, getBaseClasses(clazz))