[ICU-25] Redeclarations of format/parse needed in Format hierarchy - only redeclare to immedidate base\!

X-Commit-URL: https://ssl.icu-project.org/trac/changeset/90
This commit is contained in:
Alan Liu 1999-10-21 23:19:36 +00:00
parent 92e266279c
commit 95ec143d24

View file

@ -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&