| Index: source/i18n/currfmt.cpp
|
| diff --git a/source/i18n/currfmt.cpp b/source/i18n/currfmt.cpp
|
| index 97be9730f35595d01231970e98ac2cb855963730..23a7d52acac1573e06a2cc0babcc1ba07281e294 100644
|
| --- a/source/i18n/currfmt.cpp
|
| +++ b/source/i18n/currfmt.cpp
|
| @@ -1,6 +1,6 @@
|
| /*
|
| **********************************************************************
|
| -* Copyright (c) 2004-2012 International Business Machines
|
| +* Copyright (c) 2004-2014 International Business Machines
|
| * Corporation and others. All Rights Reserved.
|
| **********************************************************************
|
| * Author: Alan Liu
|
| @@ -8,8 +8,6 @@
|
| * Since: ICU 3.0
|
| **********************************************************************
|
| */
|
| -#include "utypeinfo.h" // for 'typeid' to work
|
| -
|
| #include "unicode/utypes.h"
|
|
|
| #if !UCONFIG_NO_FORMATTING
|
| @@ -21,7 +19,7 @@
|
| U_NAMESPACE_BEGIN
|
|
|
| CurrencyFormat::CurrencyFormat(const Locale& locale, UErrorCode& ec) :
|
| - fmt(NULL)
|
| + MeasureFormat(locale, UMEASFMT_WIDTH_WIDE, ec), fmt(NULL)
|
| {
|
| fmt = NumberFormat::createCurrencyInstance(locale, ec);
|
| }
|
| @@ -36,17 +34,6 @@ CurrencyFormat::~CurrencyFormat() {
|
| delete fmt;
|
| }
|
|
|
| -UBool CurrencyFormat::operator==(const Format& other) const {
|
| - if (this == &other) {
|
| - return TRUE;
|
| - }
|
| - if (typeid(*this) != typeid(other)) {
|
| - return FALSE;
|
| - }
|
| - const CurrencyFormat* c = (const CurrencyFormat*) &other;
|
| - return *fmt == *c->fmt;
|
| -}
|
| -
|
| Format* CurrencyFormat::clone() const {
|
| return new CurrencyFormat(*this);
|
| }
|
|
|