One more for the speedracer bustage fix.

The problem is that the generated header contains the following bit:
  enum { MODIFICATION = 1U };
  enum { ADDITION = 2U };
  enum { REMOVAL = 3U };

So to speedracer's compiler, this line signals a potential programmer error:

PRInt32 modHint = modification ? nsIDOMMutationEvent::MODIFICATION : nsIDOMMutationEvent::ADDITION;

Apparently they value it like an error and not a warning.
This commit is contained in:
jaggernaut%netscape.com 2001-08-25 04:34:17 +00:00
Родитель b7b30ca17a
Коммит 4390a22770
1 изменённых файлов: 2 добавлений и 1 удалений

Просмотреть файл

@ -3086,7 +3086,8 @@ nsXULElement::SetAttr(nsINodeInfo* aNodeInfo,
(tagName.get() == nsXULAtoms::key))
return rv;
PRInt32 modHint = modification ? nsIDOMMutationEvent::MODIFICATION : nsIDOMMutationEvent::ADDITION;
PRInt32 modHint = modification ? PRInt32(nsIDOMMutationEvent::MODIFICATION)
: PRInt32(nsIDOMMutationEvent::ADDITION);
mDocument->AttributeChanged(this, attrns, attrName, modHint,
NS_STYLE_HINT_UNKNOWN);
}