mirror of
https://github.com/eclipse-cdt/cdt
synced 2025-06-07 17:56:01 +02:00
Cosmetics.
This commit is contained in:
parent
5854ece2d4
commit
1e2e41d302
1 changed files with 18 additions and 18 deletions
|
@ -162,7 +162,7 @@ public class CallHierarchyUI {
|
||||||
if (name.isDefinition()) {
|
if (name.isDefinition()) {
|
||||||
ICElement elem= IndexUI.getCElementForName(project, index, name);
|
ICElement elem= IndexUI.getCElementForName(project, index, name);
|
||||||
if (elem != null) {
|
if (elem != null) {
|
||||||
return new ICElement[]{elem};
|
return new ICElement[] { elem };
|
||||||
}
|
}
|
||||||
return NO_ELEMENTS;
|
return NO_ELEMENTS;
|
||||||
}
|
}
|
||||||
|
@ -174,14 +174,14 @@ public class CallHierarchyUI {
|
||||||
if (name.isDeclaration()) {
|
if (name.isDeclaration()) {
|
||||||
ICElementHandle elem= IndexUI.getCElementForName(project, index, name);
|
ICElementHandle elem= IndexUI.getCElementForName(project, index, name);
|
||||||
if (elem != null) {
|
if (elem != null) {
|
||||||
return new ICElement[] {elem};
|
return new ICElement[] { elem };
|
||||||
}
|
}
|
||||||
return NO_ELEMENTS;
|
return NO_ELEMENTS;
|
||||||
}
|
}
|
||||||
|
|
||||||
ICElementHandle elem= IndexUI.findAnyDeclaration(index, project, binding);
|
ICElementHandle elem= IndexUI.findAnyDeclaration(index, project, binding);
|
||||||
if (elem != null) {
|
if (elem != null) {
|
||||||
return new ICElement[]{elem};
|
return new ICElement[] { elem };
|
||||||
}
|
}
|
||||||
|
|
||||||
if (binding instanceof ICPPSpecialization) {
|
if (binding instanceof ICPPSpecialization) {
|
||||||
|
@ -209,7 +209,7 @@ public class CallHierarchyUI {
|
||||||
if (elems.length == 0) {
|
if (elems.length == 0) {
|
||||||
ICElementHandle elem= IndexUI.findAnyDeclaration(index, project, original);
|
ICElementHandle elem= IndexUI.findAnyDeclaration(index, project, original);
|
||||||
if (elem != null) {
|
if (elem != null) {
|
||||||
elems= new ICElementHandle[]{elem};
|
elems= new ICElementHandle[] { elem };
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
if (elems.length > 0) {
|
if (elems.length > 0) {
|
||||||
|
|
Loading…
Add table
Reference in a new issue