1
0
Fork 0
mirror of https://github.com/eclipse-cdt/cdt synced 2025-04-29 19:45:01 +02:00

fix class cast exception

This commit is contained in:
Andrew Niefer 2005-06-06 16:58:37 +00:00
parent 1b3dbcb015
commit 46bac7d344

View file

@ -247,7 +247,7 @@ public class CPPVariable implements ICPPVariable, ICPPInternalBinding {
dtor = (IASTDeclarator) declarations[0].getParent();
else {
//definition of a static field doesn't necessarily say static
if( definition instanceof ICPPASTQualifiedName )
if( definition.getParent() instanceof ICPPASTQualifiedName )
return true;
dtor = (IASTDeclarator) definition.getParent();
}