Fixing build warnings due to us null-checking a pointer that's never null. No bug.

This commit is contained in:
Boris Zbarsky 2008-10-07 17:24:37 -04:00
Родитель a5999683b3
Коммит 331d890285
1 изменённых файлов: 3 добавлений и 2 удалений

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

@ -572,8 +572,9 @@ MapToCCMapExt(PRUint32* aBmpPlaneMap, PRUint32** aOtherPlaneMaps, PRUint32 aOthe
for (i = 0; i < aOtherPlaneNum; i++) { for (i = 0; i < aOtherPlaneNum; i++) {
if (aOtherPlaneMaps[i]) { if (aOtherPlaneMaps[i]) {
otherPlaneObj[i] = new nsCompressedCharMap(); otherPlaneObj[i] = new nsCompressedCharMap();
NS_ASSERTION(otherPlaneObj, "unable to create new nsCompressedCharMap"); NS_ASSERTION(otherPlaneObj[i],
if(otherPlaneObj) { "unable to create new nsCompressedCharMap");
if(otherPlaneObj[i]) {
otherPlaneObj[i]->SetChars(aOtherPlaneMaps[i]); otherPlaneObj[i]->SetChars(aOtherPlaneMaps[i]);
totalSize += otherPlaneObj[i]->GetSize(); totalSize += otherPlaneObj[i]->GetSize();
} }