mirror of
https://github.com/eclipse-cdt/cdt
synced 2025-06-08 02:06:01 +02:00
Cosmetics.
This commit is contained in:
parent
4174ed63d5
commit
d9f76e60dc
2 changed files with 6 additions and 6 deletions
|
@ -22,7 +22,7 @@ public class IndexFileLocation implements IIndexFileLocation {
|
||||||
private final String fullPath;
|
private final String fullPath;
|
||||||
|
|
||||||
public IndexFileLocation(URI uri, String fullPath) {
|
public IndexFileLocation(URI uri, String fullPath) {
|
||||||
if(uri==null)
|
if (uri == null)
|
||||||
throw new IllegalArgumentException();
|
throw new IllegalArgumentException();
|
||||||
this.uri = uri;
|
this.uri = uri;
|
||||||
this.fullPath = fullPath;
|
this.fullPath = fullPath;
|
||||||
|
@ -50,8 +50,8 @@ public class IndexFileLocation implements IIndexFileLocation {
|
||||||
*/
|
*/
|
||||||
@Override
|
@Override
|
||||||
public boolean equals(Object obj) {
|
public boolean equals(Object obj) {
|
||||||
if(obj instanceof IIndexFileLocation) {
|
if (obj instanceof IIndexFileLocation) {
|
||||||
return uri.equals(((IIndexFileLocation)obj).getURI());
|
return uri.equals(((IIndexFileLocation) obj).getURI());
|
||||||
}
|
}
|
||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
|
|
|
@ -80,10 +80,10 @@ public class PDOMInclude implements IIndexFragmentInclude {
|
||||||
boolean deducible_name = isDeducibleName(targetFile, nameChars);
|
boolean deducible_name = isDeducibleName(targetFile, nameChars);
|
||||||
// If the name is the same as an end part of the path of the included file,
|
// If the name is the same as an end part of the path of the included file,
|
||||||
// store the length of the name instead of the name itself.
|
// store the length of the name instead of the name itself.
|
||||||
if( deducible_name ) {
|
if (deducible_name) {
|
||||||
db.putInt( record + INCLUDE_NAME_OR_LENGTH, nameChars.length );
|
db.putInt(record + INCLUDE_NAME_OR_LENGTH, nameChars.length);
|
||||||
} else {
|
} else {
|
||||||
db.putRecPtr( record + INCLUDE_NAME_OR_LENGTH, db.newString(nameChars).getRecord() );
|
db.putRecPtr(record + INCLUDE_NAME_OR_LENGTH, db.newString(nameChars).getRecord());
|
||||||
}
|
}
|
||||||
setFlag(encodeFlags(include, deducible_name));
|
setFlag(encodeFlags(include, deducible_name));
|
||||||
setIncludedBy(containerFile);
|
setIncludedBy(containerFile);
|
||||||
|
|
Loading…
Add table
Reference in a new issue