mirror of
https://github.com/unicode-org/icu.git
synced 2025-04-13 00:43:32 +00:00
ICU-6132 Change status error code.
X-SVN-Rev: 23199
This commit is contained in:
parent
9105daf5dc
commit
0b6146f394
1 changed files with 2 additions and 2 deletions
|
@ -336,7 +336,7 @@ BreakIterator::registerInstance(BreakIterator* toAdopt, const Locale& locale, UB
|
|||
{
|
||||
ICULocaleService *service = getService();
|
||||
if (service == NULL) {
|
||||
status = U_ILLEGAL_ARGUMENT_ERROR;
|
||||
status = U_MEMORY_ALLOCATION_ERROR;
|
||||
return NULL;
|
||||
}
|
||||
return service->registerInstance(toAdopt, locale, kind, status);
|
||||
|
@ -351,7 +351,7 @@ BreakIterator::unregister(URegistryKey key, UErrorCode& status)
|
|||
if (hasService()) {
|
||||
return gService->unregister(key, status);
|
||||
}
|
||||
status = U_ILLEGAL_ARGUMENT_ERROR;
|
||||
status = U_MEMORY_ALLOCATION_ERROR;
|
||||
}
|
||||
return FALSE;
|
||||
}
|
||||
|
|
Loading…
Add table
Reference in a new issue