1
0
Fork 0
mirror of https://github.com/eclipse-cdt/cdt synced 2025-07-31 12:55:40 +02:00

Cosmetics.

This commit is contained in:
Sergey Prigogin 2011-02-28 02:17:30 +00:00
parent 86f5038595
commit 3992f87dc4

View file

@ -82,7 +82,7 @@ public class CIndex implements IIndex {
} else { } else {
for (int i = 0; i < fPrimaryFragmentCount; i++) { for (int i = 0; i < fPrimaryFragmentCount; i++) {
IIndexFragmentBinding binding= fFragments[i].findBinding((IASTName) name); IIndexFragmentBinding binding= fFragments[i].findBinding((IASTName) name);
if (binding!=null) { if (binding != null) {
return getCompositesFactory(binding.getLinkage().getLinkageID()).getCompositeBinding(binding); return getCompositesFactory(binding.getLinkage().getLinkageID()).getCompositeBinding(binding);
} }
} }
@ -207,7 +207,7 @@ public class CIndex implements IIndex {
public IIndexFile getFile(int linkageID, IIndexFileLocation location) throws CoreException { public IIndexFile getFile(int linkageID, IIndexFileLocation location) throws CoreException {
for (int i = 0; i < fPrimaryFragmentCount; i++) { for (int i = 0; i < fPrimaryFragmentCount; i++) {
IIndexFragmentFile candidate= fFragments[i].getFile(linkageID, location); IIndexFragmentFile candidate= fFragments[i].getFile(linkageID, location);
if (candidate!=null && candidate.hasContent()) { if (candidate != null && candidate.hasContent()) {
return candidate; return candidate;
} }
} }