From 0b6146f3949edc19fdcaab8dbd4e48401be03da9 Mon Sep 17 00:00:00 2001 From: Michael Ow Date: Wed, 9 Jan 2008 23:18:58 +0000 Subject: [PATCH] ICU-6132 Change status error code. X-SVN-Rev: 23199 --- icu4c/source/common/brkiter.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/icu4c/source/common/brkiter.cpp b/icu4c/source/common/brkiter.cpp index 72caf5e132c..fce3b4cc626 100644 --- a/icu4c/source/common/brkiter.cpp +++ b/icu4c/source/common/brkiter.cpp @@ -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; }