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:
parent
1b3dbcb015
commit
46bac7d344
1 changed files with 1 additions and 1 deletions
|
@ -247,7 +247,7 @@ public class CPPVariable implements ICPPVariable, ICPPInternalBinding {
|
||||||
dtor = (IASTDeclarator) declarations[0].getParent();
|
dtor = (IASTDeclarator) declarations[0].getParent();
|
||||||
else {
|
else {
|
||||||
//definition of a static field doesn't necessarily say static
|
//definition of a static field doesn't necessarily say static
|
||||||
if( definition instanceof ICPPASTQualifiedName )
|
if( definition.getParent() instanceof ICPPASTQualifiedName )
|
||||||
return true;
|
return true;
|
||||||
dtor = (IASTDeclarator) definition.getParent();
|
dtor = (IASTDeclarator) definition.getParent();
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Reference in a new issue