1
0
Fork 0
mirror of https://github.com/eclipse-cdt/cdt synced 2025-07-24 01:15:29 +02:00

Fixed compilation errors.

This commit is contained in:
Sergey Prigogin 2016-09-18 16:44:19 -07:00
parent 654907174b
commit 74850e961f

View file

@ -518,7 +518,7 @@ public class CPPTemplates {
InstantiationContext context = new InstantiationContext(tpMap, point);
IType type = instantiateType(variableTemplate.getType(), context);
IValue value = instantiateValue(variableTemplate.getInitialValue(), context,
Value.MAX_RECURSION_DEPTH);
IntegralValue.MAX_RECURSION_DEPTH);
instance = new CPPVariableInstance(template, template.getOwner(), tpMap, arguments, type, value);
}
return instance;
@ -1736,7 +1736,7 @@ public class CPPTemplates {
origInstance.getTemplateParameterMap(), context);
IType newType = instantiateType(origInstance.getType(), context);
IValue newValue = instantiateValue(origInstance.getInitialValue(), context,
Value.MAX_RECURSION_DEPTH);
IntegralValue.MAX_RECURSION_DEPTH);
return new CPPVariableInstance(origInstance.getTemplateDefinition(), origInstance.getOwner(),
newMap, newArgs, newType, newValue);
}