]> git.saurik.com Git - apple/icu.git/blobdiff - icuSources/i18n/unicode/currunit.h
ICU-66108.tar.gz
[apple/icu.git] / icuSources / i18n / unicode / currunit.h
index 46d15d6a3bf66ce2def35ba715b7d1a1d6bc71c0..d536e2fc031dbbc7022919def58e7642b7309213 100644 (file)
@@ -15,6 +15,8 @@
 
 #include "unicode/utypes.h"
 
+#if U_SHOW_CPLUSPLUS_API
+
 #if !UCONFIG_NO_FORMATTING
 
 #include "unicode/measunit.h"
@@ -24,7 +26,6 @@
  * \brief C++ API: Currency Unit Information.
  */
  
-#if U_SHOW_CPLUSPLUS_API
 U_NAMESPACE_BEGIN
 
 /**
@@ -95,7 +96,7 @@ class U_I18N_API CurrencyUnit: public MeasureUnit {
      * have the same class as returned by getDynamicClassID().
      * @stable ICU 3.0
      */
-    virtual UObject* clone() const;
+    virtual CurrencyUnit* clone() const;
 
     /**
      * Destructor
@@ -139,7 +140,9 @@ inline const char16_t* CurrencyUnit::getISOCurrency() const {
 }
 
 U_NAMESPACE_END
-#endif // U_SHOW_CPLUSPLUS_API
 
 #endif // !UCONFIG_NO_FORMATTING
+
+#endif /* U_SHOW_CPLUSPLUS_API */
+
 #endif // __CURRENCYUNIT_H__