ICU-13177 Moving FixedDecimal and IFixedDecimal destructors to cpp file.

X-SVN-Rev: 40591
This commit is contained in:
Shane Carr 2017-10-06 09:02:10 +00:00
parent 3bb0274f43
commit 6a43ed9826
3 changed files with 8 additions and 4 deletions

View 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);

View 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);

View 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
}
}
};