Bug 236472: Fix 3 warnings.

r/sr=tor


git-svn-id: svn://10.0.0.236/trunk@153528 18797224-902f-48f8-a5cc-f745e15eee43
This commit is contained in:
sicking%bigfoot.com 2004-03-04 18:04:29 +00:00
parent cc90b56ed0
commit f05e9b4f7b
3 changed files with 12 additions and 4 deletions

View File

@ -419,6 +419,12 @@ nsAttrValue::GetColorValue(nscolor& aColor) const
{
aColor = NS_STATIC_CAST(nscolor, GetIntInternal());
break;
}
default:
{
NS_NOTREACHED("unexpected basetype");
break;
}
}

View File

@ -1605,8 +1605,9 @@ nsGenericHTMLElement::SetAttrAndNotify(PRInt32 aNamespaceID,
PRBool aNotify)
{
nsresult rv;
PRUint8 modType = aModification ? nsIDOMMutationEvent::MODIFICATION :
nsIDOMMutationEvent::ADDITION;
PRUint8 modType = aModification ?
NS_STATIC_CAST(PRUint8. nsIDOMMutationEvent::MODIFICATION) :
NS_STATIC_CAST(PRUint8. nsIDOMMutationEvent::ADDITION);
mozAutoDocUpdate updateBatch(mDocument, UPDATE_CONTENT_MODEL, aNotify);
if (aNotify && mDocument) {

View File

@ -2192,8 +2192,9 @@ nsXULElement::SetAttrAndNotify(PRInt32 aNamespaceID,
PRBool aNotify)
{
nsresult rv;
PRUint8 modType = aModification ? nsIDOMMutationEvent::MODIFICATION :
nsIDOMMutationEvent::ADDITION;
PRUint8 modType = aModification ?
NS_STATIC_CAST(PRUint8. nsIDOMMutationEvent::MODIFICATION) :
NS_STATIC_CAST(PRUint8. nsIDOMMutationEvent::ADDITION);
mozAutoDocUpdate updateBatch(mDocument, UPDATE_CONTENT_MODEL, aNotify);
if (aNotify && mDocument) {