mirror of
https://github.com/eclipse-cdt/cdt
synced 2025-04-29 19:45:01 +02:00
Fixed ClassCastException.
This commit is contained in:
parent
30c3237227
commit
34b49d5545
1 changed files with 5 additions and 3 deletions
|
@ -303,9 +303,11 @@ public class EvalID extends CPPEvaluation {
|
||||||
if (templateArgs == fTemplateArgs && fieldOwner == fFieldOwner && nameOwner == fNameOwner)
|
if (templateArgs == fTemplateArgs && fieldOwner == fFieldOwner && nameOwner == fNameOwner)
|
||||||
return this;
|
return this;
|
||||||
|
|
||||||
ICPPEvaluation eval = resolveName((ICPPClassType) nameOwner, templateArgs, point);
|
if (nameOwner instanceof ICPPClassType) {
|
||||||
if (eval != null)
|
ICPPEvaluation eval = resolveName((ICPPClassType) nameOwner, templateArgs, point);
|
||||||
return eval;
|
if (eval != null)
|
||||||
|
return eval;
|
||||||
|
}
|
||||||
|
|
||||||
return new EvalID(fieldOwner, nameOwner, fName, fAddressOf, fQualified, templateArgs);
|
return new EvalID(fieldOwner, nameOwner, fName, fAddressOf, fQualified, templateArgs);
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Reference in a new issue