Bug 486029 - Use C++ style casts in more places. r=brendan

This commit is contained in:
Blake Kaplan
2009-03-30 16:33:54 -07:00
parent 5a3cbe1af3
commit ee30e22e91
2 changed files with 5 additions and 5 deletions

View File

@@ -3315,7 +3315,7 @@ DeepCopyInLRS(JSContext *cx, JSXML *xml, uintN flags)
JS_CHECK_RECURSION(cx, return NULL);
copy = js_NewXML(cx, (JSXMLClass) xml->xml_class);
copy = js_NewXML(cx, JSXMLClass(xml->xml_class));
if (!copy)
return NULL;
qn = xml->name;
@@ -3755,7 +3755,7 @@ Replace(JSContext *cx, JSXML *xml, uint32 i, jsval v)
vxml = (JSXML *) JS_GetPrivate(cx, vobj);
}
switch (vxml ? (JSXMLClass) vxml->xml_class : JSXML_CLASS_LIMIT) {
switch (vxml ? JSXMLClass(vxml->xml_class) : JSXML_CLASS_LIMIT) {
case JSXML_CLASS_ELEMENT:
/* OPTION: enforce that descendants have superset namespaces. */
if (!CheckCycle(cx, xml, vxml))