зеркало из https://github.com/mozilla/pjs.git
Fixing build warnings due to us null-checking a pointer that's never null. No bug.
This commit is contained in:
Родитель
a5999683b3
Коммит
331d890285
|
@ -572,8 +572,9 @@ MapToCCMapExt(PRUint32* aBmpPlaneMap, PRUint32** aOtherPlaneMaps, PRUint32 aOthe
|
|||
for (i = 0; i < aOtherPlaneNum; i++) {
|
||||
if (aOtherPlaneMaps[i]) {
|
||||
otherPlaneObj[i] = new nsCompressedCharMap();
|
||||
NS_ASSERTION(otherPlaneObj, "unable to create new nsCompressedCharMap");
|
||||
if(otherPlaneObj) {
|
||||
NS_ASSERTION(otherPlaneObj[i],
|
||||
"unable to create new nsCompressedCharMap");
|
||||
if(otherPlaneObj[i]) {
|
||||
otherPlaneObj[i]->SetChars(aOtherPlaneMaps[i]);
|
||||
totalSize += otherPlaneObj[i]->GetSize();
|
||||
}
|
||||
|
|
Загрузка…
Ссылка в новой задаче