1
0
Fork 0
mirror of https://github.com/eclipse-cdt/cdt synced 2025-06-08 02:06:01 +02:00
This commit is contained in:
Bogdan Gheorghe 2005-06-14 15:25:04 +00:00
parent da065bb454
commit 2e043c84e6

View file

@ -168,11 +168,13 @@ public class ClassDeclarationPattern extends CSearchPattern {
BasicSearchMatch match = new BasicSearchMatch(); BasicSearchMatch match = new BasicSearchMatch();
match.setName(new String(this.decodedSimpleName)); match.setName(new String(this.decodedSimpleName));
//Get qualified names as strings //Get qualified names as strings
String[] qualifiedName = new String[decodedContainingTypes.length]; if (decodedContainingTypes != null){
for (int k=0; k<this.decodedContainingTypes.length; k++){ String[] qualifiedName = new String[decodedContainingTypes.length];
qualifiedName[k] =new String(this.decodedContainingTypes[k]); for (int k=0; k<this.decodedContainingTypes.length; k++){
qualifiedName[k] =new String(this.decodedContainingTypes[k]);
}
match.setQualifiedName(qualifiedName);
} }
match.setQualifiedName(qualifiedName);
//Don't forget that offsets are encoded ICIndexStorageConstants //Don't forget that offsets are encoded ICIndexStorageConstants
//Offsets can either be LINE or OFFSET //Offsets can either be LINE or OFFSET
int offsetType = Integer.valueOf(String.valueOf(offsets[i][j]).substring(0,1)).intValue(); int offsetType = Integer.valueOf(String.valueOf(offsets[i][j]).substring(0,1)).intValue();