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:
parent
4386f43881
commit
312ea7796b
1 changed files with 3 additions and 4 deletions
|
@ -46,10 +46,9 @@ public abstract class CompositeScope implements IIndexScope {
|
||||||
|
|
||||||
// Note: for c++ namespaces we are returning an arbitrary name
|
// Note: for c++ namespaces we are returning an arbitrary name
|
||||||
final public IName getScopeName() throws DOMException {
|
final public IName getScopeName() throws DOMException {
|
||||||
IScope scope = rbinding.getScope();
|
if(rbinding instanceof IScope)
|
||||||
if(scope==null)
|
return ((IScope) rbinding).getScopeName();
|
||||||
return null;
|
return null;
|
||||||
return scope.getScopeName();
|
|
||||||
}
|
}
|
||||||
|
|
||||||
protected final void fail() {
|
protected final void fail() {
|
||||||
|
|
Loading…
Add table
Reference in a new issue