ICU-1733 Forgot a change from Lotus.

X-SVN-Rev: 8216
This commit is contained in:
George Rhoten 2002-03-23 00:25:51 +00:00
parent 910fc5468f
commit 6d5ecbfc08
2 changed files with 4 additions and 4 deletions

View File

@ -183,9 +183,9 @@ MessageFormat::MessageFormat(const MessageFormat& that)
: Format(that),
fLocale(that.fLocale),
fPattern(that.fPattern),
fOffsets(new int32_t[that.fCount]),
fOffsets((int32_t *)uprv_malloc(that.fCount * sizeof(int32_t))),
fCount(that.fCount),
fArgumentNumbers(new int32_t[that.fCount]),
fArgumentNumbers((int32_t *)uprv_malloc(that.fCount * sizeof(int32_t))),
fMaxOffset(that.fMaxOffset)
{
// Sets up the format instance array, offsets and argument numbers.

View File

@ -84,7 +84,7 @@ TestChoiceFormat::TestSimpleExample( void )
delete formequal;
//Testing adoptChoices()
double *limitsToAdopt = new double[7];
double *limitsToAdopt = (double *)uprv_malloc(7 * sizeof(double));
UnicodeString *monthNamesToAdopt = new UnicodeString[7];
uprv_arrayCopy(monthNames, monthNamesToAdopt, 7);
@ -376,7 +376,7 @@ TestChoiceFormat::TestComplexExample( void )
it_errln("*** ChoiceFormat contructor( newPattern, status) or toPattern result!");
}
double* d_a = new double[2];
double* d_a = (double *)uprv_malloc(2 * sizeof(double));
if (!d_a) { it_errln("*** allocation error."); return; }
d_a[0] = 1.0; d_a[1] = 2.0;