ICU-3500 fix compiler warning

X-SVN-Rev: 15087
This commit is contained in:
Alan Liu 2004-04-28 18:12:14 +00:00
parent 487f050eaf
commit 07304e0e50
3 changed files with 4 additions and 3 deletions

View file

@ -23,7 +23,7 @@ CurrencyFormat::CurrencyFormat(const Locale& locale, UErrorCode& ec) :
}
CurrencyFormat::CurrencyFormat(const CurrencyFormat& other) :
fmt(NULL) {
MeasureFormat(other), fmt(NULL) {
fmt = (NumberFormat*) other.fmt->clone();
}

View file

@ -28,7 +28,8 @@ CurrencyUnit::CurrencyUnit(const UChar* _isoCode, UErrorCode& ec) {
}
}
CurrencyUnit::CurrencyUnit(const CurrencyUnit& other) {
CurrencyUnit::CurrencyUnit(const CurrencyUnit& other) :
MeasureUnit(other) {
*this = other;
}

View file

@ -29,7 +29,7 @@ Measure::Measure(const Formattable& _number, MeasureUnit* adoptedUnit,
}
Measure::Measure(const Measure& other) :
unit(0) {
UObject(other), unit(0) {
*this = other;
}