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:
parent
cc90b56ed0
commit
f05e9b4f7b
@ -419,6 +419,12 @@ nsAttrValue::GetColorValue(nscolor& aColor) const
|
||||
{
|
||||
aColor = NS_STATIC_CAST(nscolor, GetIntInternal());
|
||||
|
||||
break;
|
||||
}
|
||||
default:
|
||||
{
|
||||
NS_NOTREACHED("unexpected basetype");
|
||||
|
||||
break;
|
||||
}
|
||||
}
|
||||
|
||||
@ -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) {
|
||||
|
||||
@ -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) {
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user