aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMarcelo Lira <marcelo.lira@openbossa.org>2009-12-15 15:28:25 -0300
committerMarcelo Lira <marcelo.lira@openbossa.org>2009-12-16 12:29:57 -0300
commitcb253eb807d15586a12f5de86fd716286ed3b15d (patch)
tree55dcc1380678ea7b84f44d4735b08771c6666170
parent5900a05a2079a60a71500ffa1de56e58fbd9c1e0 (diff)
Modifications in ancestors are not returned if the current class reimplements the function.
-rw-r--r--abstractmetalang.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/abstractmetalang.cpp b/abstractmetalang.cpp
index e3b431dd..13942f76 100644
--- a/abstractmetalang.cpp
+++ b/abstractmetalang.cpp
@@ -686,7 +686,7 @@ FunctionModificationList AbstractMetaFunction::modifications(const AbstractMetaC
FunctionModificationList mods;
while (implementor) {
mods += implementor->typeEntry()->functionModifications(minimalSignature());
- if (implementor == implementor->baseClass())
+ if (implementor == implementor->baseClass() || implementor == implementingClass())
break;
implementor = implementor->baseClass();
}