mirror of
https://github.com/eclipse-cdt/cdt
synced 2025-04-23 22:52:11 +02:00
Minor code simplification.
This commit is contained in:
parent
326759fe8c
commit
247faec624
1 changed files with 15 additions and 14 deletions
|
@ -187,8 +187,9 @@ public class AbstractCPPClassSpecializationScope implements ICPPClassSpecializat
|
|||
if (origClass instanceof IType) {
|
||||
ICPPBase specBase = base.clone();
|
||||
ICPPClassSpecialization specializationContext = specialClass;
|
||||
if (specialClass.getOwner() instanceof ICPPClassSpecialization) {
|
||||
specializationContext = (ICPPClassSpecialization) specialClass.getOwner();
|
||||
IBinding owner = specialClass.getOwner();
|
||||
if (owner instanceof ICPPClassSpecialization) {
|
||||
specializationContext = (ICPPClassSpecialization) owner;
|
||||
}
|
||||
IType specClass= CPPTemplates.instantiateType((IType) origClass, tpmap, -1, specializationContext, point);
|
||||
specClass = SemanticUtil.getUltimateType(specClass, false);
|
||||
|
|
Loading…
Add table
Reference in a new issue