fix PreFast warnings in layout/mathml bug 288023 r=rbs sr=roc

This commit is contained in:
bmlk%gmx.de 2005-03-30 07:34:20 +00:00
Родитель ac2afe3d7e
Коммит 90e8e89c3b
2 изменённых файлов: 5 добавлений и 5 удалений

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

@ -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