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
This commit is contained in:
George Rhoten 2001-09-28 21:41:48 +00:00
parent 385dc0eea1
commit 6b5f932d02
2 changed files with 8 additions and 6 deletions

View File

@ -64,7 +64,6 @@ static void debugout(UnicodeString s) {
// ***************************************************************************** // *****************************************************************************
const char DecimalFormat::fgClassID = 0; // Value is irrelevant const char DecimalFormat::fgClassID = 0; // Value is irrelevant
UParseError DecimalFormat::fParseError;
// Constants for characters used in programmatic (unlocalized) patterns. // Constants for characters used in programmatic (unlocalized) patterns.
const UChar DecimalFormat::kPatternZeroDigit = 0x0030 /*'0'*/; const UChar DecimalFormat::kPatternZeroDigit = 0x0030 /*'0'*/;
@ -103,7 +102,8 @@ DecimalFormat::DecimalFormat(UErrorCode& status)
fNegSuffixPattern(0), fNegSuffixPattern(0),
fSymbols(0) fSymbols(0)
{ {
construct(status,fParseError); UParseError parseError;
construct(status, parseError);
} }
//------------------------------------------------------------------------------ //------------------------------------------------------------------------------
@ -119,7 +119,8 @@ DecimalFormat::DecimalFormat(const UnicodeString& pattern,
fNegSuffixPattern(0), fNegSuffixPattern(0),
fSymbols(0) fSymbols(0)
{ {
construct(status,fParseError, &pattern); UParseError parseError;
construct(status, parseError, &pattern);
} }
//------------------------------------------------------------------------------ //------------------------------------------------------------------------------
@ -137,9 +138,10 @@ DecimalFormat::DecimalFormat(const UnicodeString& pattern,
fNegSuffixPattern(0), fNegSuffixPattern(0),
fSymbols(0) fSymbols(0)
{ {
UParseError parseError;
if (symbolsToAdopt == NULL) if (symbolsToAdopt == NULL)
status = U_ILLEGAL_ARGUMENT_ERROR; status = U_ILLEGAL_ARGUMENT_ERROR;
construct(status,fParseError, &pattern, symbolsToAdopt); construct(status, parseError, &pattern, symbolsToAdopt);
} }
DecimalFormat::DecimalFormat( const UnicodeString& pattern, DecimalFormat::DecimalFormat( const UnicodeString& pattern,
@ -172,7 +174,8 @@ DecimalFormat::DecimalFormat(const UnicodeString& pattern,
fNegSuffixPattern(0), fNegSuffixPattern(0),
fSymbols(0) fSymbols(0)
{ {
construct(status,fParseError, &pattern, new DecimalFormatSymbols(symbols)); UParseError parseError;
construct(status, parseError, &pattern, new DecimalFormatSymbols(symbols));
} }
//------------------------------------------------------------------------------ //------------------------------------------------------------------------------

View File

@ -992,7 +992,6 @@ public:
private: private:
static const char fgClassID; static const char fgClassID;
static UParseError fParseError;
/** /**
* Do real work of constructing a new DecimalFormat. * Do real work of constructing a new DecimalFormat.
*/ */