Skip to main content
aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorNathan Ridge2018-11-24 07:11:53 +0000
committerNathan Ridge2018-11-24 18:55:15 +0000
commit1bb3bb5768725ec5db2d2f48f5e81344cf5175e3 (patch)
tree6a73278daf7d12a69fabcf230c65d2f7e4f2f56e
parent636fe00de609a6c2764360388fd070d862f916f2 (diff)
downloadorg.eclipse.cdt-1bb3bb5768725ec5db2d2f48f5e81344cf5175e3.tar.gz
org.eclipse.cdt-1bb3bb5768725ec5db2d2f48f5e81344cf5175e3.tar.xz
org.eclipse.cdt-1bb3bb5768725ec5db2d2f48f5e81344cf5175e3.zip
Remove unnecessary cast to ASTCompletionNode in DOMCompletionProposalComputer
-rw-r--r--core/org.eclipse.cdt.ui/src/org/eclipse/cdt/internal/ui/text/contentassist/DOMCompletionProposalComputer.java3
1 files changed, 1 insertions, 2 deletions
diff --git a/core/org.eclipse.cdt.ui/src/org/eclipse/cdt/internal/ui/text/contentassist/DOMCompletionProposalComputer.java b/core/org.eclipse.cdt.ui/src/org/eclipse/cdt/internal/ui/text/contentassist/DOMCompletionProposalComputer.java
index 05971ede82a..db280a4cafe 100644
--- a/core/org.eclipse.cdt.ui/src/org/eclipse/cdt/internal/ui/text/contentassist/DOMCompletionProposalComputer.java
+++ b/core/org.eclipse.cdt.ui/src/org/eclipse/cdt/internal/ui/text/contentassist/DOMCompletionProposalComputer.java
@@ -30,7 +30,6 @@ import java.util.Map;
import java.util.Set;
import org.eclipse.cdt.core.dom.ILinkage;
-import org.eclipse.cdt.core.dom.ast.ASTCompletionNode;
import org.eclipse.cdt.core.dom.ast.ASTTypeUtil;
import org.eclipse.cdt.core.dom.ast.ASTVisitor;
import org.eclipse.cdt.core.dom.ast.DOMException;
@@ -162,7 +161,7 @@ public class DOMCompletionProposalComputer extends ParsingBasedProposalComputer
}
} else {
boolean handleMacros = false;
- CompletionNameEntry[] entries = ((ASTCompletionNode) completionNode).getEntries();
+ CompletionNameEntry[] entries = completionNode.getEntries();
for (CompletionNameEntry entry : entries) {
IASTName name = entry.fName;

Back to the top