This commit is contained in:
Roberto Raggi
2009-06-03 15:17:58 +02:00
parent a1c6efbd43
commit 590030428a

View File

@@ -330,10 +330,10 @@ Scope *Symbol::enclosingClassScope() const
if (! _scope)
return 0;
else if (_scope->isNamespaceScope())
else if (_scope->isClassScope())
return _scope;
return _scope->enclosingNamespaceScope();
return _scope->enclosingClassScope();
}
Scope *Symbol::enclosingEnumScope() const