Skip to main content
summaryrefslogtreecommitdiffstats
path: root/qt
diff options
context:
space:
mode:
authorNathan Ridge2017-02-16 00:25:45 -0500
committerGerrit Code Review @ Eclipse.org2017-02-17 01:14:35 -0500
commit2cd250095707cff3f00524b65ed380f56a3db2f2 (patch)
treee129c5e013873abd85710d8c017f59de665b91aa /qt
parentad845e6c3a9359ed1f4a0fa5cc61a64e43e6ffe1 (diff)
downloadorg.eclipse.cdt-2cd250095707cff3f00524b65ed380f56a3db2f2.tar.gz
org.eclipse.cdt-2cd250095707cff3f00524b65ed380f56a3db2f2.tar.xz
org.eclipse.cdt-2cd250095707cff3f00524b65ed380f56a3db2f2.zip
Bug 512262 - Remove the unnecessary ICPPEvaluationOwner interface
This also fixes some ClassCastExceptions caused by types which implemented ICPPASTInitializerClause but not ICPPEvaluationOwner. Change-Id: Ie624865ebe476fe760dc28e02b6aef8a43b4c621
Diffstat (limited to 'qt')
-rw-r--r--qt/org.eclipse.cdt.qt.core/src/org/eclipse/cdt/internal/qt/core/ASTUtil.java3
1 files changed, 1 insertions, 2 deletions
diff --git a/qt/org.eclipse.cdt.qt.core/src/org/eclipse/cdt/internal/qt/core/ASTUtil.java b/qt/org.eclipse.cdt.qt.core/src/org/eclipse/cdt/internal/qt/core/ASTUtil.java
index 92e9829b44..e702bbb9ba 100644
--- a/qt/org.eclipse.cdt.qt.core/src/org/eclipse/cdt/internal/qt/core/ASTUtil.java
+++ b/qt/org.eclipse.cdt.qt.core/src/org/eclipse/cdt/internal/qt/core/ASTUtil.java
@@ -37,7 +37,6 @@ import org.eclipse.cdt.core.model.ICProject;
import org.eclipse.cdt.core.model.ITranslationUnit;
import org.eclipse.cdt.internal.core.dom.parser.ITypeContainer;
import org.eclipse.cdt.internal.core.dom.parser.cpp.ICPPEvaluation;
-import org.eclipse.cdt.internal.core.dom.parser.cpp.ICPPEvaluationOwner;
import org.eclipse.cdt.internal.core.dom.parser.cpp.ICPPInternalBinding;
import org.eclipse.cdt.internal.core.dom.parser.cpp.semantics.CPPVisitor;
import org.eclipse.cdt.internal.qt.core.index.IQMethod;
@@ -142,7 +141,7 @@ public class ASTUtil {
return null;
ICPPASTInitializerClause cppInit = (ICPPASTInitializerClause) init;
- ICPPEvaluation eval = ((ICPPEvaluationOwner)cppInit).getEvaluation();
+ ICPPEvaluation eval = cppInit.getEvaluation();
return eval == null ? null : getBaseType(eval.getType(cppInit));
}

Back to the top