mirror of
https://github.com/eclipse-cdt/cdt
synced 2025-07-30 20:35:38 +02:00
Looks like this was a cut and paste error. Fixes a CCE since the rbinding is a function template binding, not a class template.
This commit is contained in:
parent
1bf06a9d31
commit
7b8d152516
1 changed files with 1 additions and 2 deletions
|
@ -13,7 +13,6 @@ package org.eclipse.cdt.internal.core.index.composite.cpp;
|
|||
import org.eclipse.cdt.core.dom.ast.DOMException;
|
||||
import org.eclipse.cdt.core.dom.ast.IBinding;
|
||||
import org.eclipse.cdt.core.dom.ast.IType;
|
||||
import org.eclipse.cdt.core.dom.ast.cpp.ICPPClassTemplate;
|
||||
import org.eclipse.cdt.core.dom.ast.cpp.ICPPFunction;
|
||||
import org.eclipse.cdt.core.dom.ast.cpp.ICPPFunctionTemplate;
|
||||
import org.eclipse.cdt.core.dom.ast.cpp.ICPPSpecialization;
|
||||
|
@ -31,7 +30,7 @@ public class CompositeCPPFunctionTemplateSpecialization
|
|||
}
|
||||
|
||||
public ICPPTemplateParameter[] getTemplateParameters() throws DOMException {
|
||||
ICPPTemplateParameter[] result= ((ICPPClassTemplate)rbinding).getTemplateParameters();
|
||||
ICPPTemplateParameter[] result= ((ICPPFunctionTemplate)rbinding).getTemplateParameters();
|
||||
for(int i=0; i<result.length; i++) {
|
||||
result[i]= (ICPPTemplateParameter) cf.getCompositeBinding((IIndexFragmentBinding) result[i]);
|
||||
}
|
||||
|
|
Loading…
Add table
Reference in a new issue