Clean up C++ RuleBasedCollator::safeClone().

X-SVN-Rev: 4289
This commit is contained in:
Syn Wee Quek 2001-03-22 23:17:13 +00:00
parent d8b88547bf
commit 9234f05bdf

View File

@ -541,7 +541,9 @@ UColAttributeValue RuleBasedCollator::getAttribute(UColAttribute attr,
Collator* RuleBasedCollator::safeClone(void)
{
UErrorCode intStatus = U_ZERO_ERROR;
UCollator *ucol = ucol_safeClone(ucollator, NULL, 0, &intStatus);
int32_t buffersize = U_COL_SAFECLONE_BUFFERSIZE;
UCollator *ucol = ucol_safeClone(ucollator, NULL, &buffersize,
&intStatus);
if (U_FAILURE(intStatus))
return NULL;
int32_t length = 0;