From 6b5f932d02fb954fe455ecd37c506d7e61977a00 Mon Sep 17 00:00:00 2001 From: George Rhoten Date: Fri, 28 Sep 2001 21:41:48 +0000 Subject: [PATCH] ICU-329 A static UParseError is not needed. It increases the library size slightly, and it confuses people that are searching for multithreading problems. X-SVN-Rev: 5973 --- icu4c/source/i18n/decimfmt.cpp | 13 ++++++++----- icu4c/source/i18n/unicode/decimfmt.h | 1 - 2 files changed, 8 insertions(+), 6 deletions(-) diff --git a/icu4c/source/i18n/decimfmt.cpp b/icu4c/source/i18n/decimfmt.cpp index be2ae74e69..15c8d0b1c4 100644 --- a/icu4c/source/i18n/decimfmt.cpp +++ b/icu4c/source/i18n/decimfmt.cpp @@ -64,7 +64,6 @@ static void debugout(UnicodeString s) { // ***************************************************************************** const char DecimalFormat::fgClassID = 0; // Value is irrelevant -UParseError DecimalFormat::fParseError; // Constants for characters used in programmatic (unlocalized) patterns. const UChar DecimalFormat::kPatternZeroDigit = 0x0030 /*'0'*/; @@ -103,7 +102,8 @@ DecimalFormat::DecimalFormat(UErrorCode& status) fNegSuffixPattern(0), fSymbols(0) { - construct(status,fParseError); + UParseError parseError; + construct(status, parseError); } //------------------------------------------------------------------------------ @@ -119,7 +119,8 @@ DecimalFormat::DecimalFormat(const UnicodeString& pattern, fNegSuffixPattern(0), fSymbols(0) { - construct(status,fParseError, &pattern); + UParseError parseError; + construct(status, parseError, &pattern); } //------------------------------------------------------------------------------ @@ -137,9 +138,10 @@ DecimalFormat::DecimalFormat(const UnicodeString& pattern, fNegSuffixPattern(0), fSymbols(0) { + UParseError parseError; if (symbolsToAdopt == NULL) status = U_ILLEGAL_ARGUMENT_ERROR; - construct(status,fParseError, &pattern, symbolsToAdopt); + construct(status, parseError, &pattern, symbolsToAdopt); } DecimalFormat::DecimalFormat( const UnicodeString& pattern, @@ -172,7 +174,8 @@ DecimalFormat::DecimalFormat(const UnicodeString& pattern, fNegSuffixPattern(0), fSymbols(0) { - construct(status,fParseError, &pattern, new DecimalFormatSymbols(symbols)); + UParseError parseError; + construct(status, parseError, &pattern, new DecimalFormatSymbols(symbols)); } //------------------------------------------------------------------------------ diff --git a/icu4c/source/i18n/unicode/decimfmt.h b/icu4c/source/i18n/unicode/decimfmt.h index f73dbc2a6a..d5b494e623 100644 --- a/icu4c/source/i18n/unicode/decimfmt.h +++ b/icu4c/source/i18n/unicode/decimfmt.h @@ -992,7 +992,6 @@ public: private: static const char fgClassID; - static UParseError fParseError; /** * Do real work of constructing a new DecimalFormat. */