]> granicus.if.org Git - icu/commitdiff
ICU-13667 LocalizedNumberFormatterAsFormat is in the old Format class hierarchy,...
authorMarkus Scherer <markus.icu@gmail.com>
Wed, 30 May 2018 19:15:02 +0000 (19:15 +0000)
committerMarkus Scherer <markus.icu@gmail.com>
Wed, 30 May 2018 19:15:02 +0000 (19:15 +0000)
X-SVN-Rev: 41487

icu4c/source/i18n/number_asformat.cpp
icu4c/source/i18n/number_asformat.h
icu4c/source/i18n/unicode/nounit.h

index 96b0a1c37a0e1fad0069a359c4c147a5e0b391f8..c6bb538932cec84d390255b548435cd4c5cb3707 100644 (file)
@@ -21,6 +21,8 @@ using namespace icu;
 using namespace icu::number;
 using namespace icu::number::impl;
 
+UOBJECT_DEFINE_RTTI_IMPLEMENTATION(LocalizedNumberFormatterAsFormat)
+
 LocalizedNumberFormatterAsFormat::LocalizedNumberFormatterAsFormat(
         const LocalizedNumberFormatter& formatter, const Locale& locale)
         : fFormatter(formatter), fLocale(locale) {
index 0ceb0c1479e90fd48601c6b1d9051446d8c1f35a..bf82d72ae302a42f532a60c47eb7593c0e6caf96 100644 (file)
@@ -87,6 +87,9 @@ class U_I18N_API LocalizedNumberFormatterAsFormat : public Format {
      */
     const LocalizedNumberFormatter& getNumberFormatter() const;
 
+    UClassID getDynamicClassID() const U_OVERRIDE;
+    static UClassID U_EXPORT2 getStaticClassID();
+
   private:
     LocalizedNumberFormatter fFormatter;
 
index 290e77e8806040a9ccce261db5131d33f307ddfe..288f268d66d6583cd40f786728551fbaefbe8c66 100644 (file)
@@ -61,6 +61,12 @@ public:
      */
     NoUnit(const NoUnit& other);
 
+    /**
+     * Destructor.
+     * @draft ICU 60
+     */
+    virtual ~NoUnit();
+
     /**
      * Return a polymorphic clone of this object.  The result will
      * have the same class as returned by getDynamicClassID().
@@ -86,12 +92,6 @@ public:
      */
     static UClassID U_EXPORT2 getStaticClassID();
 
-    /**
-     * Destructor.
-     * @draft ICU 60
-     */
-    virtual ~NoUnit();
-
 private:
     /**
      * Constructor