Skip to main content
aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorSergey Prigogin2008-04-07 08:20:30 +0000
committerSergey Prigogin2008-04-07 08:20:30 +0000
commitd44b8284b83c8e36ff1989d8977ad34a71fd3ba5 (patch)
treebf2bfb666f7549558b296e8f5e53fc086202abfd /core/org.eclipse.cdt.core/parser
parentedb761022095cd96552db8161e7fbdfe96c9c0f2 (diff)
downloadorg.eclipse.cdt-d44b8284b83c8e36ff1989d8977ad34a71fd3ba5.tar.gz
org.eclipse.cdt-d44b8284b83c8e36ff1989d8977ad34a71fd3ba5.tar.xz
org.eclipse.cdt-d44b8284b83c8e36ff1989d8977ad34a71fd3ba5.zip
Fixed bug 225943.
Diffstat (limited to 'core/org.eclipse.cdt.core/parser')
-rw-r--r--core/org.eclipse.cdt.core/parser/org/eclipse/cdt/internal/core/dom/parser/cpp/semantics/CPPTemplates.java3
1 files changed, 2 insertions, 1 deletions
diff --git a/core/org.eclipse.cdt.core/parser/org/eclipse/cdt/internal/core/dom/parser/cpp/semantics/CPPTemplates.java b/core/org.eclipse.cdt.core/parser/org/eclipse/cdt/internal/core/dom/parser/cpp/semantics/CPPTemplates.java
index 41dd2e88182..f854e756b80 100644
--- a/core/org.eclipse.cdt.core/parser/org/eclipse/cdt/internal/core/dom/parser/cpp/semantics/CPPTemplates.java
+++ b/core/org.eclipse.cdt.core/parser/org/eclipse/cdt/internal/core/dom/parser/cpp/semantics/CPPTemplates.java
@@ -739,7 +739,8 @@ public class CPPTemplates {
IType t = (IType) argMap.get(type);
if (t == null) {
for (int i = 0; i < argMap.size(); i++) {
- if (type.isSameType((IType) argMap.keyAt(i))) {
+ Object key = argMap.keyAt(i);
+ if (key instanceof IType && type.isSameType((IType) key)) {
newType = (IType) argMap.getAt(i);
break;
}

Back to the top