1
0
Fork 0
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:
Sergey Prigogin 2009-12-07 07:31:10 +00:00
parent facea6db02
commit 43de6972ad

View file

@ -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;
}
/**