ICU-13725 Fix whitespace (tabs to spaces).

X-SVN-Rev: 41374
This commit is contained in:
Jeff Genovy 2018-05-13 22:25:06 +00:00
parent 0f64f94ed6
commit fd1b5db09c
2 changed files with 15 additions and 15 deletions

View File

@ -35,22 +35,22 @@ namespace impl {
// for DLL-exporting an fully specified template instantiation.
class U_I18N_API CurrencyPluralInfoWrapper {
public:
LocalPointer<CurrencyPluralInfo> fPtr;
LocalPointer<CurrencyPluralInfo> fPtr;
CurrencyPluralInfoWrapper() = default;
CurrencyPluralInfoWrapper() = default;
CurrencyPluralInfoWrapper(const CurrencyPluralInfoWrapper& other) {
if (!other.fPtr.isNull()) {
fPtr.adoptInstead(new CurrencyPluralInfo(*other.fPtr));
}
}
CurrencyPluralInfoWrapper(const CurrencyPluralInfoWrapper& other) {
if (!other.fPtr.isNull()) {
fPtr.adoptInstead(new CurrencyPluralInfo(*other.fPtr));
}
}
CurrencyPluralInfoWrapper& operator=(const CurrencyPluralInfoWrapper& other) {
if (!other.fPtr.isNull()) {
fPtr.adoptInstead(new CurrencyPluralInfo(*other.fPtr));
}
return *this;
}
CurrencyPluralInfoWrapper& operator=(const CurrencyPluralInfoWrapper& other) {
if (!other.fPtr.isNull()) {
fPtr.adoptInstead(new CurrencyPluralInfo(*other.fPtr));
}
return *this;
}
};
/** Controls the set of rules for parsing a string from the old DecimalFormat API. */
@ -93,7 +93,7 @@ struct U_I18N_API DecimalFormatProperties {
public:
NullableValue<UNumberCompactStyle> compactStyle;
NullableValue<CurrencyUnit> currency;
CurrencyPluralInfoWrapper currencyPluralInfo;
CurrencyPluralInfoWrapper currencyPluralInfo;
NullableValue<UCurrencyUsage> currencyUsage;
bool decimalPatternMatchRequired;
bool decimalSeparatorAlwaysShown;

View File

@ -217,7 +217,7 @@ DecNum::setTo(const uint8_t* bcd, int32_t length, int32_t scale, bool isNegative
fData.getAlias()->bits = static_cast<uint8_t>(isNegative ? DECNEG : 0);
uprv_decNumberSetBCD(fData, bcd, static_cast<uint32_t>(length));
if (fContext.status != 0) {
// Some error occured while constructing the decNumber.
// Some error occurred while constructing the decNumber.
status = U_INTERNAL_PROGRAM_ERROR;
}
}