зеркало из https://github.com/mozilla/pjs.git
fix PreFast warnings in layout/mathml bug 288023 r=rbs sr=roc
This commit is contained in:
Родитель
ac2afe3d7e
Коммит
90e8e89c3b
|
@ -188,7 +188,7 @@ nsMathMLmpaddedFrame::ParseAttribute(nsString& aString,
|
|||
aSign = NS_MATHML_SIGN_UNSPECIFIED;
|
||||
|
||||
// skip any space after the sign
|
||||
if (i < stringLength && NS_IS_SPACE(aString[i]))
|
||||
if (i < stringLength && nsCRT::IsAsciiSpace(aString[i]))
|
||||
i++;
|
||||
|
||||
// get the number
|
||||
|
@ -229,7 +229,7 @@ nsMathMLmpaddedFrame::ParseAttribute(nsString& aString,
|
|||
}
|
||||
|
||||
// skip any space after the number
|
||||
if (i < stringLength && NS_IS_SPACE(aString[i]))
|
||||
if (i < stringLength && nsCRT::IsAsciiSpace(aString[i]))
|
||||
i++;
|
||||
|
||||
// see if this is a percentage-based value
|
||||
|
@ -238,7 +238,7 @@ nsMathMLmpaddedFrame::ParseAttribute(nsString& aString,
|
|||
gotPercent = PR_TRUE;
|
||||
|
||||
// skip any space after the '%' sign
|
||||
if (i < stringLength && NS_IS_SPACE(aString[i]))
|
||||
if (i < stringLength && nsCRT::IsAsciiSpace(aString[i]))
|
||||
i++;
|
||||
}
|
||||
|
||||
|
|
|
@ -450,8 +450,8 @@ nsMathMLOperators::LookupOperator(const nsString& aOperator,
|
|||
|
||||
nsAutoString key(aOperator);
|
||||
key.AppendInt(form, 10);
|
||||
nsStringKey hashkey(key);
|
||||
gOperatorFound[form] = found = (OperatorData*)gOperatorTable->Get(&hashkey);
|
||||
nsStringKey hkey(key);
|
||||
gOperatorFound[form] = found = (OperatorData*)gOperatorTable->Get(&hkey);
|
||||
|
||||
// If not found, check if the operator exists perhaps in a different form,
|
||||
// in the order of preference: infix, postfix, prefix
|
||||
|
|
Загрузка…
Ссылка в новой задаче