diff --git a/icu4c/source/i18n/windtfmt.h b/icu4c/source/i18n/windtfmt.h index 0c182f54e64..663ee16c174 100644 --- a/icu4c/source/i18n/windtfmt.h +++ b/icu4c/source/i18n/windtfmt.h @@ -1,6 +1,6 @@ /* ******************************************************************************** -* Copyright (C) 2005-2013, International Business Machines +* Copyright (C) 2005-2015, International Business Machines * Corporation and others. All Rights Reserved. ******************************************************************************** * @@ -52,7 +52,7 @@ public: UnicodeString &format(Calendar &cal, UnicodeString &appendTo, FieldPosition &pos) const; - UnicodeString& format(UDate date, UnicodeString& appendTo) const; + using DateFormat::format; void parse(const UnicodeString& text, Calendar& cal, ParsePosition& pos) const; @@ -127,10 +127,6 @@ private: TIME_ZONE_INFORMATION *fTZI; }; -inline UnicodeString &Win32DateFormat::format(UDate date, UnicodeString& appendTo) const { - return DateFormat::format(date, appendTo); -} - U_NAMESPACE_END #endif /* #if !UCONFIG_NO_FORMATTING */ diff --git a/icu4c/source/i18n/winnmfmt.h b/icu4c/source/i18n/winnmfmt.h index 5421a454e14..14b72cd9cf0 100644 --- a/icu4c/source/i18n/winnmfmt.h +++ b/icu4c/source/i18n/winnmfmt.h @@ -1,6 +1,6 @@ /* ******************************************************************************** -* Copyright (C) 2005-2014, International Business Machines +* Copyright (C) 2005-2015, International Business Machines * Corporation and others. All Rights Reserved. ******************************************************************************** * @@ -89,6 +89,8 @@ public: UnicodeString& appendTo, FieldPosition& pos) const; + using NumberFormat::format; + // Use the default behavior for the following. // virtual UnicodeString &format(double number, UnicodeString &appendTo) const; // virtual UnicodeString &format(int32_t number, UnicodeString &appendTo) const;