mirror of
https://github.com/eclipse-cdt/cdt
synced 2025-07-04 23:55:26 +02:00
performance fix - when dealing with spirit stuff
This commit is contained in:
parent
9545a65bbe
commit
a3c55feef7
1 changed files with 2 additions and 1 deletions
|
@ -757,7 +757,8 @@ public final class DataElement implements IDataElement
|
|||
*/
|
||||
public void setAttribute(int attributeIndex, String attribute)
|
||||
{
|
||||
if ((attributeIndex == DE.A_NAME) && (getAttribute(DE.A_NAME).equals(getAttribute(DE.A_VALUE))))
|
||||
String nameAttribute = getAttribute(DE.A_NAME);
|
||||
if ((attributeIndex == DE.A_NAME) && (nameAttribute != null && nameAttribute.equals(getAttribute(DE.A_VALUE))))
|
||||
{
|
||||
_attributes[DE.A_VALUE] = attribute;
|
||||
}
|
||||
|
|
Loading…
Add table
Reference in a new issue