1
0
Fork 0
mirror of https://github.com/eclipse-cdt/cdt synced 2025-06-08 18:26:01 +02:00

Follow up for 169666, fix CompositeScope.getScopeName().

This commit is contained in:
Markus Schorn 2007-02-13 16:09:24 +00:00
parent 4386f43881
commit 312ea7796b

View file

@ -46,10 +46,9 @@ public abstract class CompositeScope implements IIndexScope {
// Note: for c++ namespaces we are returning an arbitrary name
final public IName getScopeName() throws DOMException {
IScope scope = rbinding.getScope();
if(scope==null)
return null;
return scope.getScopeName();
if(rbinding instanceof IScope)
return ((IScope) rbinding).getScopeName();
return null;
}
protected final void fail() {