1
0
Fork 0
mirror of https://github.com/eclipse-cdt/cdt synced 2025-04-29 19:45:01 +02:00

Fixes CompositeCPPTemplateScope.getParent().

This commit is contained in:
Markus Schorn 2008-05-15 12:04:47 +00:00
parent 5f53601812
commit c8d02717aa

View file

@ -7,6 +7,7 @@
* *
* Contributors: * Contributors:
* Andrew Ferguson (Symbian) - Initial implementation * Andrew Ferguson (Symbian) - Initial implementation
* Markus Schorn (Wind River Systems)
*******************************************************************************/ *******************************************************************************/
package org.eclipse.cdt.internal.core.index.composite.cpp; package org.eclipse.cdt.internal.core.index.composite.cpp;
@ -54,6 +55,9 @@ public class CompositeCPPTemplateScope extends CompositeScope implements ICPPTem
@Override @Override
public IIndexScope getParent() { public IIndexScope getParent() {
return (IIndexScope) rbinding; // the binding is the binding for both the composite and the template scope, so
// make sure to use the parent of the scope.
final IIndexScope templateScope= rbinding.getScope();
return cf.getCompositeScope(templateScope.getParent());
} }
} }