mirror of
https://github.com/eclipse-cdt/cdt
synced 2025-07-29 20:05:35 +02:00
Fixed compiler warnings.
This commit is contained in:
parent
fe4b90d99a
commit
81011950d8
1 changed files with 17 additions and 20 deletions
|
@ -29,7 +29,6 @@ import org.eclipse.core.runtime.CoreException;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* @author Doug Schaefer
|
* @author Doug Schaefer
|
||||||
*
|
|
||||||
*/
|
*/
|
||||||
public final class PDOMName implements IIndexFragmentName, IASTFileLocation {
|
public final class PDOMName implements IIndexFragmentName, IASTFileLocation {
|
||||||
|
|
||||||
|
@ -58,8 +57,8 @@ public final class PDOMName implements IIndexFragmentName, IASTFileLocation {
|
||||||
public static final int WRITE_ACCESS = 0x20;
|
public static final int WRITE_ACCESS = 0x20;
|
||||||
|
|
||||||
|
|
||||||
|
public PDOMName(PDOM pdom, IASTName name, PDOMFile file, PDOMBinding binding, PDOMName caller)
|
||||||
public PDOMName(PDOM pdom, IASTName name, PDOMFile file, PDOMBinding binding, PDOMName caller) throws CoreException {
|
throws CoreException {
|
||||||
this.pdom = pdom;
|
this.pdom = pdom;
|
||||||
Database db = pdom.getDB();
|
Database db = pdom.getDB();
|
||||||
record = db.malloc(RECORD_SIZE);
|
record = db.malloc(RECORD_SIZE);
|
||||||
|
@ -71,7 +70,6 @@ public final class PDOMName implements IIndexFragmentName, IASTFileLocation {
|
||||||
db.putByte(record + FLAGS, (byte) flags);
|
db.putByte(record + FLAGS, (byte) flags);
|
||||||
|
|
||||||
// Hook us up to the binding
|
// Hook us up to the binding
|
||||||
if (binding != null) {
|
|
||||||
switch (flags & DECL_DEF_REF_MASK) {
|
switch (flags & DECL_DEF_REF_MASK) {
|
||||||
case IS_DEFINITION:
|
case IS_DEFINITION:
|
||||||
binding.addDefinition(this);
|
binding.addDefinition(this);
|
||||||
|
@ -85,7 +83,6 @@ public final class PDOMName implements IIndexFragmentName, IASTFileLocation {
|
||||||
}
|
}
|
||||||
|
|
||||||
db.putInt(record + BINDING_REC_OFFSET, binding.getRecord());
|
db.putInt(record + BINDING_REC_OFFSET, binding.getRecord());
|
||||||
}
|
|
||||||
|
|
||||||
db.putInt(record + FILE_REC_OFFSET, file.getRecord());
|
db.putInt(record + FILE_REC_OFFSET, file.getRecord());
|
||||||
if (caller != null) {
|
if (caller != null) {
|
||||||
|
@ -277,7 +274,7 @@ public final class PDOMName implements IIndexFragmentName, IASTFileLocation {
|
||||||
if (file != null) {
|
if (file != null) {
|
||||||
/*
|
/*
|
||||||
* We need to spec. what this method can return to know
|
* We need to spec. what this method can return to know
|
||||||
* how to implement this. Existing implmentations return
|
* how to implement this. Existing implementations return
|
||||||
* the absolute path, so here we attempt to do the same.
|
* the absolute path, so here we attempt to do the same.
|
||||||
*/
|
*/
|
||||||
URI uri = file.getLocation().getURI();
|
URI uri = file.getLocation().getURI();
|
||||||
|
|
Loading…
Add table
Reference in a new issue