mirror of
https://github.com/eclipse-cdt/cdt
synced 2025-07-12 19:45:22 +02:00
2004-07-06 Alain Magloire
Fix PR 69199 * browser/org/eclipse/cdt/core/browser/TypeInfo.java
This commit is contained in:
parent
e7bb872c9f
commit
c6bd3609a2
2 changed files with 9 additions and 3 deletions
|
@ -1,3 +1,8 @@
|
|||
2004-07-06 Alain Magloire
|
||||
|
||||
Fix PR 69199
|
||||
* browser/org/eclipse/cdt/core/browser/TypeInfo.java
|
||||
|
||||
2004-07-06 Hoda Amer
|
||||
Fix for PR 68933 : [Content Assist] removes asterisks from parameter prompt
|
||||
|
||||
|
|
|
@ -58,7 +58,10 @@ public class TypeInfo implements ITypeInfo
|
|||
ITypeReference ref = getResolvedReference();
|
||||
if (ref != null) {
|
||||
ICElement[] elems = ref.getCElements();
|
||||
if (elems.length > 1) {
|
||||
if (elems != null && elems.length > 0) {
|
||||
if (elems.length == 1)
|
||||
return elems[0];
|
||||
|
||||
for (int i = 0; i < elems.length; ++i) {
|
||||
ICElement elem = elems[i];
|
||||
if (elem.getElementType() == fElementType && elem.getElementName().equals(getName())) {
|
||||
|
@ -66,8 +69,6 @@ public class TypeInfo implements ITypeInfo
|
|||
return elem;
|
||||
}
|
||||
}
|
||||
} else if (elems.length == 1) {
|
||||
return elems[0];
|
||||
}
|
||||
}
|
||||
return null;
|
||||
|
|
Loading…
Add table
Reference in a new issue