From 46bac7d34450999abdd2cc3f7dfd58f8d7540e59 Mon Sep 17 00:00:00 2001 From: Andrew Niefer Date: Mon, 6 Jun 2005 16:58:37 +0000 Subject: [PATCH] fix class cast exception --- .../eclipse/cdt/internal/core/dom/parser/cpp/CPPVariable.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/core/org.eclipse.cdt.core/parser/org/eclipse/cdt/internal/core/dom/parser/cpp/CPPVariable.java b/core/org.eclipse.cdt.core/parser/org/eclipse/cdt/internal/core/dom/parser/cpp/CPPVariable.java index 17b2be332dd..520b8219b6c 100644 --- a/core/org.eclipse.cdt.core/parser/org/eclipse/cdt/internal/core/dom/parser/cpp/CPPVariable.java +++ b/core/org.eclipse.cdt.core/parser/org/eclipse/cdt/internal/core/dom/parser/cpp/CPPVariable.java @@ -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(); }