mirror of
https://github.com/eclipse-cdt/cdt
synced 2025-06-07 09:46:02 +02:00
Cosmetics.
This commit is contained in:
parent
d55331cf8e
commit
48930c212f
1 changed files with 4 additions and 4 deletions
|
@ -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;
|
||||
|
|
Loading…
Add table
Reference in a new issue