From f7384d4fe0f017bc79a31845b9621dd9fbd23ce1 Mon Sep 17 00:00:00 2001 From: George Rhoten Date: Thu, 21 Nov 2002 23:58:25 +0000 Subject: [PATCH] ICU-2000 Don't make the word error show in the warning message. X-SVN-Rev: 10328 --- icu4c/source/common/ustrenum.cpp | 18 ++++++++++++++---- 1 file changed, 14 insertions(+), 4 deletions(-) diff --git a/icu4c/source/common/ustrenum.cpp b/icu4c/source/common/ustrenum.cpp index 9407ec9ec27..9b25c6751d0 100644 --- a/icu4c/source/common/ustrenum.cpp +++ b/icu4c/source/common/ustrenum.cpp @@ -32,7 +32,9 @@ ustrenum_close(UEnumeration* en) { * Wrapper API to make StringEnumeration look like UEnumeration. */ static int32_t U_CALLCONV -ustrenum_count(UEnumeration* en, UErrorCode* ec) { +ustrenum_count(UEnumeration* en, + UErrorCode* ec) +{ return THIS(en)->count(*ec); } @@ -40,7 +42,10 @@ ustrenum_count(UEnumeration* en, UErrorCode* ec) { * Wrapper API to make StringEnumeration look like UEnumeration. */ static const UChar* U_CALLCONV -ustrenum_unext(UEnumeration* en, int32_t* resultLength, UErrorCode* ec) { +ustrenum_unext(UEnumeration* en, + int32_t* resultLength, + UErrorCode* ec) +{ const UChar* result = THIS(en)->unext(*ec); *resultLength = (result != NULL) ? u_strlen(result) : 0; return result; @@ -50,7 +55,10 @@ ustrenum_unext(UEnumeration* en, int32_t* resultLength, UErrorCode* ec) { * Wrapper API to make StringEnumeration look like UEnumeration. */ static const char* U_CALLCONV -ustrenum_next(UEnumeration* en, int32_t* resultLength, UErrorCode* ec) { +ustrenum_next(UEnumeration* en, + int32_t* resultLength, + UErrorCode* ec) +{ const char* result = THIS(en)->next(*ec); *resultLength = (result != NULL) ? uprv_strlen(result) : 0; return result; @@ -60,7 +68,9 @@ ustrenum_next(UEnumeration* en, int32_t* resultLength, UErrorCode* ec) { * Wrapper API to make StringEnumeration look like UEnumeration. */ static void U_CALLCONV -ustrenum_reset(UEnumeration* en, UErrorCode* ec) { +ustrenum_reset(UEnumeration* en, + UErrorCode* ec) +{ THIS(en)->reset(*ec); }