From 1c8fd5a39ca3b7098298df96b95e1021cca19846 Mon Sep 17 00:00:00 2001 From: Alan Liu Date: Thu, 21 Oct 1999 23:19:36 +0000 Subject: [PATCH] ICU-25 Redeclarations of format/parse needed in Format hierarchy - only redeclare to immedidate base\! X-SVN-Rev: 90 --- icu4c/source/i18n/choicfmt.h | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/icu4c/source/i18n/choicfmt.h b/icu4c/source/i18n/choicfmt.h index f19cfb529f9..a72c85ba2af 100644 --- a/icu4c/source/i18n/choicfmt.h +++ b/icu4c/source/i18n/choicfmt.h @@ -263,7 +263,7 @@ public: UErrorCode& status) const; /** - * Redeclared Format method. + * Redeclared NumberFormat method. */ UnicodeString& format(const Formattable& obj, UnicodeString& result, @@ -409,7 +409,9 @@ inline UnicodeString& ChoiceFormat::format(const Formattable& obj, UnicodeString& result, UErrorCode& status) const { - return Format::format(obj, result, status); + // Don't use Format:: - use NumberFormat:: in case base class + // modified behavior in future. + return NumberFormat::format(obj, result, status); } inline UnicodeString&