mirror of
https://github.com/unicode-org/icu.git
synced 2025-04-13 17:01:16 +00:00
ICU-4744 code review changes.
X-SVN-Rev: 19933
This commit is contained in:
parent
a1ec42ed4a
commit
cf2495919d
1 changed files with 10 additions and 0 deletions
|
@ -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) {
|
||||
|
|
Loading…
Add table
Reference in a new issue