From 14ec3ee7833d368002b46933e09f3c25187a999f Mon Sep 17 00:00:00 2001 From: George Rhoten Date: Mon, 4 Dec 2000 23:53:39 +0000 Subject: [PATCH] ICU-535 Fixed some compiler warnings. X-SVN-Rev: 3123 --- icu4c/source/test/intltest/numrgts.h | 41 +++++++++++++++++----------- 1 file changed, 25 insertions(+), 16 deletions(-) diff --git a/icu4c/source/test/intltest/numrgts.h b/icu4c/source/test/intltest/numrgts.h index 4ee42eaced..71e9385257 100644 --- a/icu4c/source/test/intltest/numrgts.h +++ b/icu4c/source/test/intltest/numrgts.h @@ -99,42 +99,51 @@ class MyNumberFormatTest : public NumberFormat public: - virtual UnicodeString& format( double number, + virtual UnicodeString& format( double number, UnicodeString& toAppendTo, FieldPosition& pos, UErrorCode& status) const { - return NumberFormat::format(number, toAppendTo, pos, status); + return NumberFormat::format(number, toAppendTo, pos, status); } - - virtual UnicodeString& format( double number, + + /* Just keep this here to make some of the compilers happy */ + virtual UnicodeString& format(const Formattable& obj, + UnicodeString& toAppendTo, + FieldPosition& pos, + UErrorCode& status) const + { + return NumberFormat::format(obj, toAppendTo, pos, status); + } + + virtual UnicodeString& format( double number, UnicodeString& toAppendTo, FieldPosition& pos) const { - toAppendTo = ""; - return toAppendTo; + toAppendTo = ""; + return toAppendTo; } - //public Number parse(String text, ParsePosition parsePosition) - //{ return new Integer(0); } + //public Number parse(String text, ParsePosition parsePosition) + //{ return new Integer(0); } - virtual void parse( const UnicodeString& text, + virtual void parse( const UnicodeString& text, Formattable& result, ParsePosition& parsePosition) const { - result.setLong(0L); + result.setLong(0L); } - virtual void parse( const UnicodeString& text, + virtual void parse( const UnicodeString& text, Formattable& result, UErrorCode& status) const - { - NumberFormat::parse(text, result, status); - } - virtual Format* clone() const + { + NumberFormat::parse(text, result, status); + } + virtual Format* clone() const { return NULL; } - virtual UnicodeString& format(int32_t, + virtual UnicodeString& format(int32_t, UnicodeString& foo, FieldPosition&) const { return foo.remove(); }