diff options
author | Elliott Hughes <enh@google.com> | 2013-06-06 16:30:28 -0700 |
---|---|---|
committer | Elliott Hughes <enh@google.com> | 2013-06-06 16:30:28 -0700 |
commit | c8e2cd1a5c018c40288d8ac188db1025e1b49eb1 (patch) | |
tree | ada79580928b08ca21e079ccf694ba3efe941bbc /i18n | |
parent | e7c079d9d9891a7d51bb599aae776d8a4125ea07 (diff) | |
download | icu4c-c8e2cd1a5c018c40288d8ac188db1025e1b49eb1.tar.gz |
Clean up our DecimalFormatSymbols default constructor fix.
Put the fix where it belongs, and initialize the other field we
were leaving uninitialized.
Bug: 9087737
Change-Id: Icfdbdccca9842702a86093a0dee4f9054b7d84bc
Diffstat (limited to 'i18n')
-rw-r--r-- | i18n/dcfmtsym.cpp | 6 |
1 files changed, 2 insertions, 4 deletions
diff --git a/i18n/dcfmtsym.cpp b/i18n/dcfmtsym.cpp index 9ad650f1..8271bef6 100644 --- a/i18n/dcfmtsym.cpp +++ b/i18n/dcfmtsym.cpp @@ -79,6 +79,8 @@ DecimalFormatSymbols::DecimalFormatSymbols(const Locale& loc, UErrorCode& status DecimalFormatSymbols::DecimalFormatSymbols() { + *validLocale = *actualLocale = 0; + currPattern = NULL; initialize(); } // END android-added @@ -417,10 +419,6 @@ DecimalFormatSymbols::initialize() { fSymbols[kNaNSymbol] = (UChar)0xfffd; // SUB NaN fSymbols[kSignificantDigitSymbol] = (UChar)0x0040; // '@' significant digit fSymbols[kMonetaryGroupingSeparatorSymbol].remove(); // - - // BEGIN android-added - *validLocale = *actualLocale = 0; - // END android-added } Locale |