зеркало из https://github.com/mozilla/gecko-dev.git
Fixing build warnings due to us null-checking a pointer that's never null. No bug.
This commit is contained in:
Родитель
5c7541d076
Коммит
db9f6aad6b
|
@ -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();
|
||||
}
|
||||
|
|
Загрузка…
Ссылка в новой задаче