ICU-4744 code review changes.

X-SVN-Rev: 19933
This commit is contained in:
Eric Mader 2006-07-31 20:50:52 +00:00
parent a1ec42ed4a
commit cf2495919d

View file

@ -119,6 +119,11 @@ le_int32 LEGlyphStorage::allocatePositions(LEErrorCode &success)
return -1;
}
if (fPositions != NULL) {
success = LE_INTERNAL_ERROR;
return -1;
}
fPositions = LE_NEW_ARRAY(float, 2 * (fGlyphCount + 1));
if (fPositions == NULL) {
@ -136,6 +141,11 @@ le_int32 LEGlyphStorage::allocateAuxData(LEErrorCode &success)
return -1;
}
if (fAuxData != NULL) {
success = LE_INTERNAL_ERROR;
return -1;
}
fAuxData = LE_NEW_ARRAY(le_uint32, fGlyphCount);
if (fAuxData == NULL) {