ICU-2039 memory err in test
X-SVN-Rev: 12495
This commit is contained in:
parent
07cb70634b
commit
2d96aef2ad
@ -21,9 +21,8 @@ static UnicodeString fieldName(UCalendarDateFields f);
|
||||
|
||||
static UnicodeString calToStr(const Calendar & cal)
|
||||
{
|
||||
|
||||
UnicodeString out;
|
||||
UErrorCode status;
|
||||
UErrorCode status = U_ZERO_ERROR;
|
||||
int i;
|
||||
for(i = 0;i<UCAL_FIELD_COUNT;i++) {
|
||||
out += (UnicodeString("+") + fieldName((UCalendarDateFields)i) + "=" + cal.get((UCalendarDateFields)i, status) + UnicodeString(", "));
|
||||
|
Loading…
Reference in New Issue
Block a user