1
0
Fork 0
mirror of https://github.com/eclipse-cdt/cdt synced 2025-07-24 09:25:31 +02:00

Fix 140297 - CCEs in CPPVisitor fixed by wrapping in instanceof.

This commit is contained in:
Doug Schaefer 2006-05-11 15:05:29 +00:00
parent 006a05abdc
commit 0bdb8b262e

View file

@ -616,7 +616,11 @@ public class CPPVisitor {
ICPPASTCompositeTypeSpecifier clsTypeSpec;
try {
clsTypeSpec = (ICPPASTCompositeTypeSpecifier) ((ICPPClassScope)containingScope).getPhysicalNode();
IASTNode node = ((ICPPClassScope)containingScope).getPhysicalNode();
if (node instanceof ICPPASTCompositeTypeSpecifier)
clsTypeSpec = (ICPPASTCompositeTypeSpecifier)node;
else
return false;
} catch ( DOMException e ) {
return false;
}