Bug 728907 - use mozilla::ArrayLength instead of array length macros

This commit is contained in:
Alexander Surkov 2012-03-12 09:29:48 -04:00
parent 5ca479ae99
commit e61aa83e94

View File

@ -155,15 +155,13 @@ TextAttrsMgr::GetAttributes(nsIPersistentProperties* aAttributes,
// Expose text attributes if applicable.
if (aAttributes) {
for (PRUint32 idx = 0; idx < NS_ARRAY_LENGTH(attrArray); idx++)
for (PRUint32 idx = 0; idx < ArrayLength(attrArray); idx++)
attrArray[idx]->Expose(aAttributes, mIncludeDefAttrs);
}
// Expose text attributes range where they are applied if applicable.
if (mOffsetAcc) {
GetRange(attrArray, NS_ARRAY_LENGTH(attrArray),
aStartHTOffset, aEndHTOffset);
}
if (mOffsetAcc)
GetRange(attrArray, ArrayLength(attrArray), aStartHTOffset, aEndHTOffset);
}
void