1
0
Fork 0
mirror of https://github.com/eclipse-cdt/cdt synced 2025-06-07 09:46:02 +02:00

Cosmetics.

This commit is contained in:
Sergey Prigogin 2009-01-19 03:34:20 +00:00
parent d55331cf8e
commit 48930c212f

View file

@ -50,7 +50,7 @@ public class IndexLocationFactory {
*/
public static IPath getPath(IIndexFileLocation location) {
String fp = location.getFullPath();
if(fp!=null) {
if (fp != null) {
return new Path(fp);
}
return getAbsolutePath(location);
@ -141,11 +141,11 @@ public class IndexLocationFactory {
*/
public static IIndexFileLocation getIFL(ITranslationUnit tu) {
IResource res = tu.getResource();
if(res instanceof IFile) {
if (res instanceof IFile) {
return getWorkspaceIFL((IFile)res);
}
IPath location = tu.getLocation();
if(location!=null) {
if (location != null) {
return getExternalIFL(location);
}
return null;