]> granicus.if.org Git - icu/commitdiff
ICU-13177 Moving FixedDecimal and IFixedDecimal destructors to cpp file.
authorShane Carr <shane@unicode.org>
Fri, 6 Oct 2017 09:02:10 +0000 (09:02 +0000)
committerShane Carr <shane@unicode.org>
Fri, 6 Oct 2017 09:02:10 +0000 (09:02 +0000)
X-SVN-Rev: 40591

icu4c/source/i18n/plurrule.cpp
icu4c/source/i18n/plurrule_impl.h
icu4c/source/test/intltest/numbertest_affixutils.cpp

index 950243e42e2c3d2e9f939859a93d8f9b035d106e..42e1f64e14d718313f727b73f2c30a4cce02b94e 100644 (file)
@@ -1405,6 +1405,8 @@ PluralKeywordEnumeration::count(UErrorCode& /*status*/) const {
 PluralKeywordEnumeration::~PluralKeywordEnumeration() {
 }
 
+IFixedDecimal::~IFixedDecimal() = default;
+
 FixedDecimal::FixedDecimal(const VisibleDigits &digits) {
     digits.getFixedDecimal(
             source, intValue, decimalDigits,
@@ -1481,6 +1483,8 @@ FixedDecimal::FixedDecimal(const FixedDecimal &other) {
     _isInfinite = other._isInfinite;
 }
 
+FixedDecimal::~FixedDecimal() = default;
+
 
 void FixedDecimal::init(double n) {
     int32_t numFractionDigits = decimals(n);
index b93b40cbf832266f91e24fc9617786d5f422ba3c..e4f3f3f6eaeb49483e1bf6578c685cc45442672f 100644 (file)
@@ -227,7 +227,7 @@ enum PluralOperand {
  */
 class U_I18N_API IFixedDecimal {
   public:
-    virtual ~IFixedDecimal() = default;
+    virtual ~IFixedDecimal();
 
     /**
      * Returns the value corresponding to the specified operand (n, i, f, t, v, or w).
@@ -278,7 +278,7 @@ class U_I18N_API FixedDecimal: public IFixedDecimal, public UObject {
     explicit FixedDecimal(double n);
     explicit FixedDecimal(const VisibleDigits &n);
     FixedDecimal();
-    ~FixedDecimal() U_OVERRIDE = default;
+    ~FixedDecimal() U_OVERRIDE;
     FixedDecimal(const UnicodeString &s, UErrorCode &ec);
     FixedDecimal(const FixedDecimal &other);
 
index 5fff9853e6a8793f8560a45684b054ff30cd2363..63c155ca49653ab7c4aaebf9db39fd0f5591e475 100644 (file)
@@ -18,7 +18,7 @@ class DefaultSymbolProvider : public SymbolProvider {
   public:
     DefaultSymbolProvider(UErrorCode &status) : fSymbols(Locale("ar_SA"), status) {}
 
-    virtual UnicodeString getSymbol(AffixPatternType type) const {
+    virtual UnicodeString getSymbol(AffixPatternType type) const U_OVERRIDE {
         switch (type) {
             case TYPE_MINUS_SIGN:
                 return u"−";
@@ -43,7 +43,7 @@ class DefaultSymbolProvider : public SymbolProvider {
                 return u"\uFFFD";
             default:
                 U_ASSERT(false);
-                return 0; // silence compiler warnings
+                return {}; // silence compiler warnings
         }
     }
 };