mirror of
https://github.com/eclipse-cdt/cdt
synced 2025-04-23 14:42:11 +02:00
Avoid creating an unnecessary object.
This commit is contained in:
parent
facea6db02
commit
43de6972ad
1 changed files with 1 additions and 1 deletions
|
@ -332,7 +332,7 @@ public abstract class PDOMBinding extends PDOMNamedNode implements IPDOMBinding
|
|||
}
|
||||
|
||||
public boolean hasDefinition() throws CoreException {
|
||||
return getFirstDefinition() != null;
|
||||
return getDB().getRecPtr(record + FIRST_DEF_OFFSET) != 0;
|
||||
}
|
||||
|
||||
/**
|
||||
|
|
Loading…
Add table
Reference in a new issue